Compare commits
2 Commits
2970dca3e0
...
dev-2026
| Author | SHA1 | Date | |
|---|---|---|---|
| c55f6b4045 | |||
| 0b4127a0e2 |
@@ -202,14 +202,15 @@
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
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);
|
||||
this.$router.replace({ name, query });
|
||||
return;
|
||||
}
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
this.id = this.$route.query.id || urlParams.get('id');
|
||||
|
||||
await this.getAreaTree();
|
||||
if(this.id) {
|
||||
await this.getInfoHandler();
|
||||
|
||||
Reference in New Issue
Block a user