tremble 4 سال پیش
والد
کامیت
d30886d352
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      pc/src/components/toast/cooperation.vue

+ 6 - 2
pc/src/components/toast/cooperation.vue

@@ -63,7 +63,7 @@ export default {
       if (newVal) {
         this.selectAll = true
         this.getResoureList()
-        this.getResoureByNum()
+        // this.getResoureByNum()
       }
       this.userName = ''
       this.lang = localStorage.getItem('language')
@@ -136,7 +136,11 @@ export default {
       if (res.data.code !== 0) {
         return this.handleClick()
       }
-      this.auth = res.data.data
+      let tmp = res.data.data.map(item => {
+        item.hasAuth = true
+        return item
+      })
+      this.auth = tmp
     },
     async addCooperation () {
       let token = localStorage.getItem('token')