#216 done by using return-to URL mechanism

This commit is contained in:
Cindy Chang
2024-06-11 11:57:33 +08:00
parent 444b7d6975
commit aa1dbfabf2
4 changed files with 46 additions and 19 deletions

View File

@@ -5,7 +5,7 @@
<DspLogo />
</figure>
<div class="flex justify-between items-center" v-show="showMember">
<button class="btn btn-sm btn-neutral mr-2" @click.prevent="logOutButton">
<button id="logout_btn" class="btn btn-sm btn-neutral mr-2" @click.prevent="logOutButton">
Logout
</button>
<!-- <figure>
@@ -56,9 +56,12 @@ export default {
// 傳給 Map通知 Sidebar 要關閉。
this.$emitter.emit('leaveFilter', false);
leaveFilter(false, this.allMapDataStore.addFilterId, false, this.logOut)
} else if((this.$route.name === 'Conformance' || this.$route.name === 'CheckConformance') && (this.conformanceLogTempCheckId || this.conformanceFilterTempCheckId)) {
} else if((this.$route.name === 'Conformance' || this.$route.name === 'CheckConformance')
&& (this.conformanceLogTempCheckId || this.conformanceFilterTempCheckId)) {
leaveConformance(false, this.conformanceStore.addConformanceCreateCheckId, false, this.logOut)
} else this.logOut();
} else {
this.logOut();
}
},
},
mounted() {