refine and clean console.log
This commit is contained in:
@@ -54,7 +54,6 @@ export async function saveFilter(addFilterId) {
|
|||||||
fileName = '';
|
fileName = '';
|
||||||
return true;
|
return true;
|
||||||
} else { // 點擊取消或空白處,為存檔失敗。
|
} else { // 點擊取消或空白處,為存檔失敗。
|
||||||
console.log("is not confirmed");
|
|
||||||
PageAdminStore.keepPreviousPage();
|
PageAdminStore.keepPreviousPage();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -101,8 +100,6 @@ export async function leaveFilter(next, addFilterId, toPath, logOut) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(result.isConfirmed) {
|
if(result.isConfirmed) {
|
||||||
//TODO:
|
|
||||||
console.log("result of SWAL modal:", result);
|
|
||||||
|
|
||||||
if(allMapDataStore.createFilterId) {
|
if(allMapDataStore.createFilterId) {
|
||||||
await allMapDataStore.updataFilter();
|
await allMapDataStore.updataFilter();
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ export default defineStore('pageAdminStore', {
|
|||||||
* Copy(transit) the value of pendingActivePage to activePage
|
* Copy(transit) the value of pendingActivePage to activePage
|
||||||
*/
|
*/
|
||||||
copyPendingPageToActivePage() {
|
copyPendingPageToActivePage() {
|
||||||
console.log("copyPendingPageToActivePage", this.pendingActivePage);
|
|
||||||
this.activePage = this.pendingActivePage;
|
this.activePage = this.pendingActivePage;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
@@ -46,7 +45,6 @@ export default defineStore('pageAdminStore', {
|
|||||||
* @param {string} pendingActivePage
|
* @param {string} pendingActivePage
|
||||||
*/
|
*/
|
||||||
setPendingActivePage(argPendingActivePage) {
|
setPendingActivePage(argPendingActivePage) {
|
||||||
console.log("setPendingActivePage", argPendingActivePage);
|
|
||||||
this.pendingActivePage = argPendingActivePage;
|
this.pendingActivePage = argPendingActivePage;
|
||||||
this.isPending = true;
|
this.isPending = true;
|
||||||
},
|
},
|
||||||
@@ -55,7 +53,6 @@ export default defineStore('pageAdminStore', {
|
|||||||
* Also, stop pending state.
|
* Also, stop pending state.
|
||||||
*/
|
*/
|
||||||
clearPendingActivePage(){
|
clearPendingActivePage(){
|
||||||
console.log("clearPendingActivePage");
|
|
||||||
this.pendingActivePage = '';
|
this.pendingActivePage = '';
|
||||||
this.isPending = false;
|
this.isPending = false;
|
||||||
},
|
},
|
||||||
@@ -64,17 +61,14 @@ export default defineStore('pageAdminStore', {
|
|||||||
* instead, we apply the previous page.
|
* instead, we apply the previous page.
|
||||||
*/
|
*/
|
||||||
keepPreviousPage() {
|
keepPreviousPage() {
|
||||||
console.log("keepPreviousPage", this.previousPage);
|
|
||||||
this.activePage = this.previousPage;
|
this.activePage = this.previousPage;
|
||||||
this.isPending = false;
|
this.isPending = false;
|
||||||
this.shouldKeepPreviousPage = true;
|
this.shouldKeepPreviousPage = true;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* When user dismiss the popup modal, we don't apply the new page,
|
* Clean up the state of the boolean related to modal showing phase
|
||||||
* instead, we apply the previous page.
|
|
||||||
*/
|
*/
|
||||||
clearShouldKeepPreviousPageBoolean(){
|
clearShouldKeepPreviousPageBoolean(){
|
||||||
console.log("clearShouldKeepPreviousPageBoolean FALSE");
|
|
||||||
this.shouldKeepPreviousPage = false;
|
this.shouldKeepPreviousPage = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user