作者 xudada

切换页面数据刷新问题

@@ -1044,7 +1044,7 @@ @@ -1044,7 +1044,7 @@
1044 computed:{ 1044 computed:{
1045 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName 1045 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
1046 }, 1046 },
1047 - mounted(){ 1047 + activated(){
1048 this.getList(); 1048 this.getList();
1049 } 1049 }
1050 } 1050 }
@@ -184,8 +184,8 @@ @@ -184,8 +184,8 @@
184 this.$router.go(-1);//返回上一层 184 this.$router.go(-1);//返回上一层
185 }, 185 },
186 }, 186 },
187 - mounted(){ 187 + activated(){
188 this.getDefaultData(); 188 this.getDefaultData();
189 } 189 }
190 } 190 }
191 -</script>  
  191 +</script>
@@ -195,7 +195,7 @@ @@ -195,7 +195,7 @@
195 } 195 }
196 }, 196 },
197 /*渲染方法*/ 197 /*渲染方法*/
198 - mounted(){ 198 + activated(){
199 this.getDefaultData(); 199 this.getDefaultData();
200 //this.getFlightList(); 200 //this.getFlightList();
201 }, 201 },
@@ -198,7 +198,7 @@ @@ -198,7 +198,7 @@
198 } 198 }
199 }, 199 },
200 /*渲染方法*/ 200 /*渲染方法*/
201 - mounted(){ 201 + activated(){
202 this.getDefaultData(); 202 this.getDefaultData();
203 } 203 }
204 }; 204 };
@@ -195,8 +195,8 @@ @@ -195,8 +195,8 @@
195 this.$router.go(-1);//返回上一层 195 this.$router.go(-1);//返回上一层
196 }, 196 },
197 }, 197 },
198 - mounted(){ 198 + activated(){
199 this.getDefaultData(); 199 this.getDefaultData();
200 } 200 }
201 } 201 }
202 -</script>  
  202 +</script>
@@ -168,7 +168,7 @@ @@ -168,7 +168,7 @@
168 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName 168 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
169 }, 169 },
170 /*渲染方法*/ 170 /*渲染方法*/
171 - mounted() { 171 + activated() {
172 let that=this; 172 let that=this;
173 that.getdatatime(); 173 that.getdatatime();
174 that.getFlightList(); 174 that.getFlightList();
@@ -1401,7 +1401,7 @@ @@ -1401,7 +1401,7 @@
1401 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName 1401 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
1402 }, 1402 },
1403 /*渲染方法*/ 1403 /*渲染方法*/
1404 - mounted(){ 1404 + activated(){
1405 this.getDefaultData(); 1405 this.getDefaultData();
1406 this.getList(); 1406 this.getList();
1407 } 1407 }
@@ -892,7 +892,7 @@ @@ -892,7 +892,7 @@
892 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName 892 ...mapGetters(['getUserInfoStore','getUserMenuStore']) // 动态计算属性,相当于this.$store.getters.resturantName
893 }, 893 },
894 //渲染方法 894 //渲染方法
895 - mounted(){ 895 + activated(){
896 this.getDefaultData(); 896 this.getDefaultData();
897 this.getMt5201List(); 897 this.getMt5201List();
898 } 898 }