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); }