瀏覽代碼

在mounted的时候请求数据

gcz 3 年之前
父節點
當前提交
d085562f6f
共有 1 個文件被更改,包括 2 次插入7 次删除
  1. 2 7
      src/views/index.vue

+ 2 - 7
src/views/index.vue

@@ -154,15 +154,10 @@
       };
     },
     created(){
-
-      this.getPageData();
-
-      this.getRightScrollData();
-
-      // this.getPage2echarts01();
-      // this.getPage2echarts02();
     },
     mounted(){
+      this.getPageData();
+      this.getRightScrollData();
       setInterval(() => {
         this.getPageData();
       }, 60000);