feat:添加vuex的Module
This commit is contained in:
11
src/store/modules/user.ts
Normal file
11
src/store/modules/user.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {Module} from "vuex";
|
||||
|
||||
// vuex的Module使用 https://blog.csdn.net/fanweilin0123/article/details/109903447
|
||||
export interface State {
|
||||
token:string,
|
||||
name:string,
|
||||
avatar:string,
|
||||
introduction:string,
|
||||
roles:string[],
|
||||
perms:string[]
|
||||
}
|
||||
Reference in New Issue
Block a user