You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crmeb/app/store/getters.js

18 lines
634 B

11 months ago
export default {
token: state => state.app.token,
isLogin: state => !!state.app.token,
backgroundColor: state => state.app.backgroundColor,
userInfo: state => state.app.userInfo || {},
uid: state => state.app.uid,
homeActive: state => state.app.homeActive,
home: state => state.app.home,
chatUrl: state => state.app.chatUrl,
systemPlatform: state => state.app.systemPlatform,
productType: state => state.app.productType,
// 字典相关getter
dict: state => state.dict.dict,
dictData: state => state.dict.dictData,
// 根据字典类型获取字典数据
dictByType: state => type => state.dict.dictData[type] || []
11 months ago
};