更新后退bug问题
This commit is contained in:
@@ -93,6 +93,9 @@ export default {
|
||||
// 获取数据
|
||||
onInit() {
|
||||
this.type = this.$route.params.type;
|
||||
if (this.$route.params.type) {
|
||||
window.sessionStorage.setItem("type", this.$route.params.type);
|
||||
}
|
||||
this.ticket = this.$route.params.ticket;
|
||||
mgop({
|
||||
api: "mgop.kykj.houseexpropriat.getprjlist",
|
||||
@@ -115,7 +118,8 @@ export default {
|
||||
},
|
||||
// 页面跳转
|
||||
gotoDetail(id) {
|
||||
if (this.type == "pg") {
|
||||
console.log("跳转了");
|
||||
if (window.sessionStorage.getItem("type") == "pg") {
|
||||
// 评估结果页面
|
||||
this.$router.push({
|
||||
name: "evaluteResult",
|
||||
@@ -124,7 +128,7 @@ export default {
|
||||
ticket: this.$route.params.ticket
|
||||
}
|
||||
});
|
||||
} else if (this.type == "xy") {
|
||||
} else if (window.sessionStorage.getItem("type") == "xy") {
|
||||
// 协议结果页面
|
||||
this.$router.push({
|
||||
name: "reportAgreement",
|
||||
|
||||
Reference in New Issue
Block a user