refactor NavBar.vue

This commit is contained in:
Cindy Chang
2024-07-22 13:52:48 +08:00
parent 258a25972a
commit adcdb2bdc0
10 changed files with 67 additions and 76 deletions

View File

@@ -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();
}
};