|
@@ -32,7 +32,7 @@ const actions = {
|
|
|
async update({ commit }, { id, ...data }) {
|
|
|
const res = await this.$axios.$post(`${api.update(id)}`, data);
|
|
|
if (res.errcode == '0') {
|
|
|
- commit('setDefOpt', res.data.data, { root: true });
|
|
|
+ commit('setDefOpt', res.data, { root: true });
|
|
|
}
|
|
|
return res;
|
|
|
},
|