Parcourir la source

切换菜单时读取数据

gcz il y a 2 ans
Parent
commit
04d0195262
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/index.vue

+ 1 - 1
src/views/index.vue

@@ -202,7 +202,7 @@
         this.$store.commit('changePage',this.navList[index-1].en);
         console.log('this.navList[index-1].en',this.navList[index-1].en);
         this.page = index;
-        // this.getPageData();
+        this.getPageData();
       },
       getPageData(){
         debounce(this.debounceGetData, 1000, true)