refine and clean console.log
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user