Pārlūkot izejas kodu

Merge branch 'dev/v1.0.88_yf' of jianyu/web into feature/v1.0.91

yangfeng 5 mēneši atpakaļ
vecāks
revīzija
f8981ab6b3
1 mainītis faili ar 10 papildinājumiem un 7 dzēšanām
  1. 10 7
      apps/bigmember_pc/src/views/PotentialList.vue

+ 10 - 7
apps/bigmember_pc/src/views/PotentialList.vue

@@ -350,9 +350,9 @@ export default {
         this.recoverCreate()
       }
     },
-    recoverCreate() {
+    async recoverCreate() {
       this.filters.searchbool = 1
-      this.$refs.pushList.doQuery(this.filters)
+      await this.$refs.pushList.doQuery(this.filters)
     },
     goDetail(item) {
       let routeUrl = {}
@@ -482,12 +482,15 @@ export default {
       return this.$route.query.mark === '1'
     }
   },
-  mounted() {
+  async mounted() {
+    if (!this.isDeleteAllScope) {
+      await this.$store.dispatch('user/getKeywordsList')
+    }
     this.changeBusiness([])
-    this.recoverCreate()
     if (this.isUseCache) {
       this.doResetSelectorForCahce()
     }
+    await this.recoverCreate()
   },
   activated() {
     this.changeBusiness([])
@@ -496,15 +499,15 @@ export default {
     }
   },
   async created() {
+    // if (!this.isDeleteAllScope) {
+    //   await this.$store.dispatch('user/getKeywordsList')
+    // }
     // 从缓存中获取详情页筛选项
     if (this.isUseCache) {
       this.doResetArticleCacheFilter()
     } else {
       this.filters.business_scope = this.scope
     }
-    if (!this.isDeleteAllScope) {
-      await this.$store.dispatch('user/getKeywordsList')
-    }
   }
 }
 </script>