更新后退bug问题

This commit is contained in:
2021-09-18 16:51:37 +08:00
parent 61e6a198f1
commit 3f1c64f9d4
12 changed files with 196 additions and 41 deletions

View File

@@ -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",