소스 검색

日报分享

zhujindu 5 달 전
부모
커밋
0f41a70431
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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;