pageAdmin add setActivePageComputedByRoute function
This commit is contained in:
@@ -54,6 +54,7 @@ export async function saveFilter(addFilterId) {
|
||||
fileName = '';
|
||||
return true;
|
||||
} else { // 點擊取消或空白處,為存檔失敗。
|
||||
// console.log("PageAdminStore.activePage", PageAdminStore.activePage);
|
||||
PageAdminStore.keepPreviousPage();
|
||||
return false;
|
||||
}
|
||||
@@ -100,6 +101,7 @@ export async function leaveFilter(next, addFilterId, toPath, logOut) {
|
||||
});
|
||||
|
||||
if(result.isConfirmed) {
|
||||
console.log('popup confirm case', );
|
||||
|
||||
if(allMapDataStore.createFilterId) {
|
||||
await allMapDataStore.updataFilter();
|
||||
@@ -116,13 +118,17 @@ export async function leaveFilter(next, addFilterId, toPath, logOut) {
|
||||
|
||||
logOut ? logOut() : next(toPath);
|
||||
} else if(result.dismiss === 'cancel') {
|
||||
console.log('popup cancel case', );
|
||||
// Handle page admin issue
|
||||
console.log("PageAdminStore.activePage", PageAdminStore.activePage);
|
||||
pageAdminStore.keepPreviousPage();
|
||||
|
||||
allMapDataStore.tempFilterId = null;
|
||||
logOut ? logOut() : next(toPath);
|
||||
} else if(result.dismiss === 'backdrop') {
|
||||
console.log('popup backdrop case', );
|
||||
// Handle page admin issue
|
||||
console.log("PageAdminStore.activePage", PageAdminStore.activePage);
|
||||
pageAdminStore.keepPreviousPage();
|
||||
|
||||
logOut ? null : next(false);
|
||||
|
||||
Reference in New Issue
Block a user