Issues #186: fix, The sidevar needs to close when the button is pressed.
This commit is contained in:
@@ -60,6 +60,8 @@ export default {
|
||||
beforeRouteUpdate(to, from, next) {
|
||||
// 離開 Discover 頁時判斷是否有無資料和需要存檔
|
||||
if ((from.name === 'Map') && this.tempFilterId) {
|
||||
// 傳給 Map,通知 Sidebar 要關閉。
|
||||
this.$emitter.emit('leaveFilter', false);
|
||||
leaveFilter(next, this.allMapDataStore.addFilterId, to.path)
|
||||
} else {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user