This commit is contained in:
2023-05-29 17:27:57 +08:00
parent d920d0130b
commit 9c741c940e
4 changed files with 5 additions and 30 deletions

View File

@@ -1,11 +1,9 @@
import * as types from '../types'
import { getStore, setStore } from '@config/utils.js'
// import { getStore, setStore } from '@config/utils.js'
const state = {
materObj: {}, // 物料查询-盘点修改
hcxCheckObj: {}, // 缓存线盘点 - 盘点修改,
defaultActive: getStore('defaultActive') || '1',
sideActive: getStore('sideActive') || '1'
hcxCheckObj: {} // 缓存线盘点 - 盘点修改
}
const getters = {
@@ -20,10 +18,6 @@ const actions = {
},
hcxCheckObj ({commit}, res) {
commit(types.HCX_CHECK_OBJ, res)
},
getDefaultActive ({commit}, res) {
setStore('defaultActive', res)
commit(types.GET_DEFAULT_ACTIVE, res)
}
}
@@ -33,9 +27,6 @@ const mutations = {
},
[types.HCX_CHECK_OBJ] (state, res) {
state.hcxCheckObj = res
},
[types.GET_DEFAULT_ACTIVE] (state, res) {
state.defaultActive = res
}
}