guhongwei 3 سال پیش
والد
کامیت
18ef8e782d
3فایلهای تغییر یافته به همراه0 افزوده شده و 27 حذف شده
  1. 0 9
      src/store/dock/dockImgtxt.js
  2. 0 9
      src/store/dock/dockTranscation.js
  3. 0 9
      src/store/dock/dockVideo.js

+ 0 - 9
src/store/dock/dockImgtxt.js

@@ -34,15 +34,6 @@ const actions = {
     const res = await this.$axios.$delete(`${api.dockInfo}/${payload}`);
     return res;
   },
-  async login({ commit }, payload) {
-    const res = await this.$axios.$post(`${api.dockInfo}/login`, payload);
-    if (res.errcode === 0) {
-      localStorage.setItem('token', res.data);
-      const user = jwt.decode(res.data);
-      commit('setUser', user, { root: true });
-    }
-    return res;
-  },
 };
 export default {
   namespaced: true,

+ 0 - 9
src/store/dock/dockTranscation.js

@@ -34,15 +34,6 @@ const actions = {
     const res = await this.$axios.$delete(`${api.dockInfo}/${payload}`);
     return res;
   },
-  async login({ commit }, payload) {
-    const res = await this.$axios.$post(`${api.dockInfo}/login`, payload);
-    if (res.errcode === 0) {
-      localStorage.setItem('token', res.data);
-      const user = jwt.decode(res.data);
-      commit('setUser', user, { root: true });
-    }
-    return res;
-  },
 };
 export default {
   namespaced: true,

+ 0 - 9
src/store/dock/dockVideo.js

@@ -34,15 +34,6 @@ const actions = {
     const res = await this.$axios.$delete(`${api.dockInfo}/${payload}`);
     return res;
   },
-  async login({ commit }, payload) {
-    const res = await this.$axios.$post(`${api.dockInfo}/login`, payload);
-    if (res.errcode === 0) {
-      localStorage.setItem('token', res.data);
-      const user = jwt.decode(res.data);
-      commit('setUser', user, { root: true });
-    }
-    return res;
-  },
 };
 export default {
   namespaced: true,