ソースを参照

fix:修复系统指引首次加载数据没有过滤的bug

luoaoxuan 1 年間 前
コミット
1323270dc4
1 ファイル変更7 行追加1 行削除
  1. 7 1
      src/views/system/dashboard/templates/systemGuide.vue

+ 7 - 1
src/views/system/dashboard/templates/systemGuide.vue

@@ -97,8 +97,14 @@ export default {
             }
         }
     },
+
     mounted () {
-        this.getData()
+        const timer = setInterval(() => {
+            if (this.$refs.guide) {
+                this.getData()
+                clearInterval(timer)
+            }
+        }, 200)
     },
     methods: {
         getGuide ({ parameters, requestPage, sorts }) {