update:修复跳转报错bug

This commit is contained in:
2021-09-22 10:29:15 +08:00
parent c510971673
commit 917102f667
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);
} }