refine and clean console.log

This commit is contained in:
Cindy Chang
2024-05-31 16:07:52 +08:00
parent 2142399f8c
commit 38e1aa9446
2 changed files with 1 additions and 10 deletions

View File

@@ -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;
},
},