Procházet zdrojové kódy

Merge branch 'feature_20250331_日报分享' into uat(dev)

zhujindu před 6 měsíci
rodič
revize
60da034a7e
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      src/views/week/dailyDetails.vue

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

@@ -666,9 +666,6 @@ export default {
     };
   },
   created() {
-    this.source = this.$route.query.source || '';
-    this.sourceType = this.$route.query.sourceType || '';
-    this.powerGrade = localStorage.getItem('powerGrade');
     this.getDetailById();
   },
   watch: {
@@ -684,6 +681,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;