This commit is contained in:
路 范
2021-09-22 10:33:06 +08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -365,7 +365,7 @@ export default {
params: { params: {
type: type, type: type,
ticket: this.$route.query.ticket || this.ticket, ticket: this.$route.query.ticket || this.ticket,
prjId: id || this.data.prjList[0].prjId prjId: id || ""
} }
}); });
}, },

View File

@@ -91,7 +91,8 @@ export default {
methods: { methods: {
// 获取数据 // 获取数据
onInit() { onInit() {
this.type = this.$route.params.type; this.type =
this.$route.params.type || window.sessionStorage.getItem("type");
if (this.$route.params.type) { if (this.$route.params.type) {
window.sessionStorage.setItem("type", this.$route.params.type); window.sessionStorage.setItem("type", this.$route.params.type);
} }