lrf402788946 5 tahun lalu
induk
melakukan
cf362ebab7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      store/setting.js

+ 1 - 1
store/setting.js

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