import { AppState } from './state'; import { AppMutationTypes} from './mutation-types'; const getters = { getContextPath(state: AppState) {// 次方法是直接返回user这个数据 return state.contextPath; }, getModuleCode(state: AppState) {// 次方法是直接返回user这个数据 return state.moduleCode; }, keepAliveComponentsName(state: AppState) {// 次方法是直接返回user这个数据 return state.keepAliveComponentsName; }, [AppMutationTypes.getAppModules](state: AppState) {// 次方法是直接返回user这个数据 return state.appModules; }, [AppMutationTypes.getOption](state: AppState) {// 次方法是直接返回user这个数据 return state.options; }, } export default getters;