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