update:修复跳转报错bug
This commit is contained in:
@@ -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 || ""
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user