Browse Source

在mounted的时候请求数据

gcz 3 years ago
parent
commit
d085562f6f
1 changed files with 2 additions and 7 deletions
  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);