export default { // CTX setCtx (state, options) { state.ctx = options.ctx; }, // 登录状态token setToken (state, options) { state.token = options.token; }, // 登录状态token setBreadcrumb (state, options) { state.breadcrumb = options.breadcrumb; }, // 设置基础路径 setBaseUrl (state, options) { state.imgBaseUrl = options.imgBaseUrl; state.fileBaseUrl = options.fileBaseUrl; state.fileUploadUrl = options.fileUploadUrl; state.fileDownloadUrl = options.fileDownloadUrl; }, // 设置当前界面状态值 setCurrentStates (state, options) { state.currentStates = options.currentStates }, // 设置仓库编码 setStorageattr (state, options) { state.storageattr = options.storageattr }, // setNkHaveChild (state, options) { state.nkHaveChild = options.nkHaveChild }, // setNkDoCheck (state, options) { state.nkDoCheck = options.nkDoCheck }, // setJfHaveChild (state, options) { state.jfHaveChild = options.jfHaveChild }, // setJfDoCheck (state, options) { state.jfDoCheck = options.jfDoCheck }, // apollo addUser (state, data) { state.apolloUser = data; }, addOrg (state, data) { state.apolloOrg = data; } }