guhongwei 4 vuotta sitten
vanhempi
commit
fab571b910
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      src/store/user/auth-user.js
  2. 2 2
      src/views/dockbind.vue

+ 1 - 1
src/store/user/auth-user.js

@@ -40,7 +40,7 @@ const actions = {
     const res = await this.$axios.$post(`${api.bindInfo}`, payload);
     const res = await this.$axios.$post(`${api.bindInfo}`, payload);
     return res;
     return res;
   },
   },
-  async dockInfo({ commit }, payload) {
+  async dockInfos({ commit }, payload) {
     const res = await this.$axios.$post(`${api.dockInfo}`, payload);
     const res = await this.$axios.$post(`${api.dockInfo}`, payload);
     return res;
     return res;
   },
   },

+ 2 - 2
src/views/dockbind.vue

@@ -41,13 +41,13 @@ export default {
     },
     },
   },
   },
   methods: {
   methods: {
-    ...authUser(['dockbind']),
+    ...authUser(['dockInfos']),
     async bindBtn() {
     async bindBtn() {
       let data = {};
       let data = {};
       data.dock_id = this.qrcode;
       data.dock_id = this.qrcode;
       data.role='3';
       data.role='3';
       data.openid = this.openid;
       data.openid = this.openid;
-      let res = await this.dockbind(data);
+      let res = await this.dockInfos(data);
       if (res.errcode == '0') {
       if (res.errcode == '0') {
         this.$message({
         this.$message({
           message: '绑定成功',
           message: '绑定成功',