zhujindu il y a 5 mois
Parent
commit
0f41a70431
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/views/week/dailyDetails.vue

+ 3 - 3
src/views/week/dailyDetails.vue

@@ -640,9 +640,6 @@ export default {
     };
   },
   created() {
-    this.source = this.$route.query.source || '';
-    this.sourceType = this.$route.query.sourceType || '';
-    this.powerGrade = localStorage.getItem('powerGrade');
     this.getDetailById();
   },
   watch: {
@@ -658,6 +655,9 @@ export default {
     },
   },
   activated() {
+    this.source = this.$route.query.source || '';
+    this.sourceType = this.$route.query.sourceType || '';
+    this.powerGrade = localStorage.getItem('powerGrade');
     this.setDailyDetailsBoxFlag = true;
     this.shareImgFlag = false;
     this.num = 0;