refactor NavBar.vue
This commit is contained in:
@@ -57,10 +57,11 @@ export async function saveFilter(addFilterId, next = null) {
|
||||
return true;
|
||||
} else { // 點擊取消或空白處,為存檔失敗。
|
||||
pageAdminStore.keepPreviousPage();
|
||||
// console.log("現在 pageAdminStore.activePage", pageAdminStore.activePage);
|
||||
|
||||
// Not every time we have nontrivial next value
|
||||
next !== null ? next(false) : 1;
|
||||
if (next !== null) {
|
||||
next(false);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -106,8 +107,6 @@ export async function leaveFilter(next, addFilterId, toPath, logOut) {
|
||||
});
|
||||
|
||||
if(result.isConfirmed) {
|
||||
// console.log('popup confirm case', );
|
||||
|
||||
if(allMapDataStore.createFilterId) {
|
||||
await allMapDataStore.updataFilter();
|
||||
if(allMapDataStore.isUpdataFilter) {
|
||||
@@ -503,9 +502,7 @@ export async function leaveAccountManagementToRemind(){
|
||||
}
|
||||
});
|
||||
if(result.isConfirmed) {
|
||||
//TODO: Call Pinia Save Backend API
|
||||
} else {
|
||||
//TODO:
|
||||
modalStore.openModal();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user