feat:增加换货单的逻辑,已发货短信模板更改
This commit is contained in:
@@ -4,10 +4,15 @@ const state = {
|
||||
const mutations = {
|
||||
SET_DICT: (state, { key, value }) => {
|
||||
if (key !== null && key !== "") {
|
||||
state.dict.push({
|
||||
key: key,
|
||||
value: value
|
||||
})
|
||||
const index = state.dict.findIndex(item => item.key === key)
|
||||
if (index >= 0) {
|
||||
state.dict.splice(index, 1, { key: key, value: value })
|
||||
} else {
|
||||
state.dict.push({
|
||||
key: key,
|
||||
value: value
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
REMOVE_DICT: (state, key) => {
|
||||
|
||||
Reference in New Issue
Block a user