From 38e1aa9446ef437ce65f144185ec3d713c92f7ed Mon Sep 17 00:00:00 2001 From: Cindy Chang Date: Fri, 31 May 2024 16:07:52 +0800 Subject: [PATCH] refine and clean console.log --- src/module/alertModal.js | 3 --- src/stores/pageAdmin.js | 8 +------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/module/alertModal.js b/src/module/alertModal.js index edecb58..545665c 100644 --- a/src/module/alertModal.js +++ b/src/module/alertModal.js @@ -54,7 +54,6 @@ export async function saveFilter(addFilterId) { fileName = ''; return true; } else { // 點擊取消或空白處,為存檔失敗。 - console.log("is not confirmed"); PageAdminStore.keepPreviousPage(); return false; } @@ -101,8 +100,6 @@ export async function leaveFilter(next, addFilterId, toPath, logOut) { }); if(result.isConfirmed) { - //TODO: - console.log("result of SWAL modal:", result); if(allMapDataStore.createFilterId) { await allMapDataStore.updataFilter(); diff --git a/src/stores/pageAdmin.js b/src/stores/pageAdmin.js index 5ade937..fdf43a2 100644 --- a/src/stores/pageAdmin.js +++ b/src/stores/pageAdmin.js @@ -36,7 +36,6 @@ export default defineStore('pageAdminStore', { * Copy(transit) the value of pendingActivePage to activePage */ copyPendingPageToActivePage() { - console.log("copyPendingPageToActivePage", this.pendingActivePage); this.activePage = this.pendingActivePage; }, /** @@ -46,7 +45,6 @@ export default defineStore('pageAdminStore', { * @param {string} pendingActivePage */ setPendingActivePage(argPendingActivePage) { - console.log("setPendingActivePage", argPendingActivePage); this.pendingActivePage = argPendingActivePage; this.isPending = true; }, @@ -55,7 +53,6 @@ export default defineStore('pageAdminStore', { * Also, stop pending state. */ clearPendingActivePage(){ - console.log("clearPendingActivePage"); this.pendingActivePage = ''; this.isPending = false; }, @@ -64,17 +61,14 @@ export default defineStore('pageAdminStore', { * instead, we apply the previous page. */ keepPreviousPage() { - console.log("keepPreviousPage", this.previousPage); this.activePage = this.previousPage; this.isPending = false; this.shouldKeepPreviousPage = true; }, /** - * When user dismiss the popup modal, we don't apply the new page, - * instead, we apply the previous page. + * Clean up the state of the boolean related to modal showing phase */ clearShouldKeepPreviousPageBoolean(){ - console.log("clearShouldKeepPreviousPageBoolean FALSE"); this.shouldKeepPreviousPage = false; }, },