Browse Source

优化逻辑

xiaohaizhao 1 year ago
parent
commit
d6d4e77bd8
1 changed files with 11 additions and 4 deletions
  1. 11 4
      pages/index/index/myCase.vue

+ 11 - 4
pages/index/index/myCase.vue

@@ -39,11 +39,18 @@ export default {
     methods: {
         init(callBack, params) {
             if (params) this.tabsActive = params.active;
-            console.log(this.tabsActive)
-            if (!this.$refs[this.tabsActive].isInitialize) this.$refs[this.tabsActive].getList(true).then(res => {
+            this.$refs[this.tabsActive].getList(true).then(res => {
+                    callBack()
+                    this.updatePage = false;
+                })
+          /*   if (!this.$refs[this.tabsActive].isInitialize) {
+                this.$refs[this.tabsActive].getList(true).then(res => {
+                    callBack()
+                    this.updatePage = false;
+                })
+            } else {
                 callBack()
-                this.updatePage = false;
-            })
+            } */
         },
         tabsChange(tabsActive) {
             this.tabsActive = tabsActive;