getters.js
1.43 KB
const getters = {
sidebar: (state) => state.app.sidebar,
size: (state) => state.app.size,
device: (state) => state.app.device,
appHeaderBlockClientHeight: (state) => state.app.headerBlockClientHeight,
appMainBlockClientHeight: (state) => state.app.appMainBlockClientHeight,
visitedViews: (state) => state.tagsView.visitedViews,
cachedViews: (state) => state.tagsView.cachedViews,
token: (state) => state.user.token,
avatar: (state) => state.user.avatar,
name: (state) => state.user.name,
activePortName: (state) => state.user.activePortName,
portName: (state) => state.user.portName,
introduction: (state) => state.user.introduction,
roles: (state) => state.user.roles,
permissions: (state) => state.user.permissions,
permission_routes: (state) => state.permission.routes,
topbarRouters: (state) => state.permission.topbarRouters,
defaultRoutes: (state) => state.permission.defaultRoutes,
sidebarRouters: (state) => state.permission.sidebarRouters,
filghtAllData: (state) => state.permission.filghtAllData,
tableHeader: (state) => state.user.tableHeader,
userData: (state) => state.user.userData,
stepStatelist: (state) => state.fillForm.stepStatelist,
declareId: (state) => state.fillForm.declareId,
fillId: (state) => state.fillForm.fillId,
deliveryNo: (state) => state.fillForm.deliveryNo,
appLoading: (state) => state.user.appLoading,
dictData: (state) => state.user.dictData
};
export default getters;