成都工业学院第三方新开页面关闭调整

This commit is contained in:
joylink_fanyuhong 2024-06-04 11:42:34 +08:00
parent 081d5bf630
commit 37e0779d23
2 changed files with 5 additions and 2 deletions

View File

@ -227,7 +227,9 @@ export default {
this.logout(); this.logout();
// }); // });
} else if (this.$route.query.third) { } else if (this.$route.query.third) {
if (this.$route.query.project === 'cgy' || this.$route.query.project === 'drts') { if (this.$route.query.thirdOpen) {
window.close();
} else if (this.$route.query.project === 'cgy' || this.$route.query.project === 'drts') {
window.parent.postMessage('back', '*'); window.parent.postMessage('back', '*');
} else { } else {
window.close(); window.close();

View File

@ -63,7 +63,8 @@ export default {
async enterSimulation() { async enterSimulation() {
const query = { const query = {
third: true, third: true,
query: 'cgy' project: 'cgy',
thirdOpen: true
}; };
const resp = await getMapFunctioById(this.$route.query.systemId); const resp = await getMapFunctioById(this.$route.query.systemId);
query.mapId = resp.data.mapId; query.mapId = resp.data.mapId;