From 917102f6678214db17ce039676bc747d0e53b1ea Mon Sep 17 00:00:00 2001 From: lisl <1223762861@qq.com> Date: Wed, 22 Sep 2021 10:29:15 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BF=AE=E5=A4=8D=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=8A=A5=E9=94=99bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontCode2/sunshine_levy/src/views/index.vue | 2 +- FrontCode2/sunshine_levy/src/views/project/index.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FrontCode2/sunshine_levy/src/views/index.vue b/FrontCode2/sunshine_levy/src/views/index.vue index 2f7a532..ea51bcf 100644 --- a/FrontCode2/sunshine_levy/src/views/index.vue +++ b/FrontCode2/sunshine_levy/src/views/index.vue @@ -365,7 +365,7 @@ export default { params: { type: type, ticket: this.$route.query.ticket || this.ticket, - prjId: id || this.data.prjList[0].prjId + prjId: id || "" } }); }, diff --git a/FrontCode2/sunshine_levy/src/views/project/index.vue b/FrontCode2/sunshine_levy/src/views/project/index.vue index 4e436d4..2090395 100644 --- a/FrontCode2/sunshine_levy/src/views/project/index.vue +++ b/FrontCode2/sunshine_levy/src/views/project/index.vue @@ -91,7 +91,8 @@ export default { methods: { // 获取数据 onInit() { - this.type = this.$route.params.type; + this.type = + this.$route.params.type || window.sessionStorage.getItem("type"); if (this.$route.params.type) { window.sessionStorage.setItem("type", this.$route.params.type); }