getters.js
667 Bytes
const getters = {
sidebar: state => state.app.sidebar,
size: state => state.app.size,
flag: state => state.app.splitScreen,
visitedViews: state => state.tagsView.visitedViews,
cachedViews: state => state.tagsView.cachedViews,
avatar: state => state.user.avatar,
userInfo: state => state.user.userInfo,
permission_routes: state => state.permission.routes,
addRoutes: state => state.permission.addRoutes,
rules: state => state.business.rules,
dicData: state => state.dict.dicData,
Edit: state => state.business.Edit,
businessInfo: state => state.dictionaries.businessInfo,
products: state => state.products.products
}
export default getters