Explorar el Código

在mounted的时候请求数据

gcz hace 3 años
padre
commit
d085562f6f
Se han modificado 1 ficheros con 2 adiciones y 7 borrados
  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);