CRM_26-04-22#story#8495,潜在供应商H5页面提交信息,信息审核,提交补充信息与退回理由的优化与修复(跳转详情修改--修改跳转)
This commit is contained in:
@@ -203,13 +203,14 @@
|
|||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
const lastRoute = localStorage.getItem('lastRoute');
|
const lastRoute = localStorage.getItem('lastRoute');
|
||||||
if (lastRoute) {
|
this.id = this.$route.query.id || urlParams.get('id');
|
||||||
|
if (lastRoute && !this.id) {
|
||||||
const { name, query } = JSON.parse(lastRoute);
|
const { name, query } = JSON.parse(lastRoute);
|
||||||
this.$router.replace({ name, query });
|
this.$router.replace({ name, query });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
this.id = this.$route.query.id || urlParams.get('id');
|
|
||||||
await this.getAreaTree();
|
await this.getAreaTree();
|
||||||
if(this.id) {
|
if(this.id) {
|
||||||
await this.getInfoHandler();
|
await this.getInfoHandler();
|
||||||
|
|||||||
Reference in New Issue
Block a user