初始化仓库
This commit is contained in:
8
store/getters.js
Normal file
8
store/getters.js
Normal file
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
userInfo: state => state.app.userInfo || {},
|
||||
token: state => state.app.token,
|
||||
isLogin: state => !!state.app.token,
|
||||
cartNum: state => state.app.cartNum,
|
||||
inviteCode: state => state.app.userInfo.distribution_code || "",
|
||||
appConfig: state => state.app.config
|
||||
};
|
||||
Reference in New Issue
Block a user