lrf402788946 5 rokov pred
rodič
commit
cf362ebab7
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      store/setting.js

+ 1 - 1
store/setting.js

@@ -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;
   },