fix #293. stay at MAP page. Remove calling of copyPending.......
This commit is contained in:
@@ -137,6 +137,7 @@ export default {
|
||||
'activePage',
|
||||
'pendingActivePage',
|
||||
'activePageComputedByRoute',
|
||||
'shouldKeepPreviousPage',
|
||||
]),
|
||||
},
|
||||
watch: {
|
||||
@@ -146,7 +147,13 @@ export default {
|
||||
},
|
||||
activePageComputedByRoute (newVal) {
|
||||
// console.log('activePageComputedByRoute newVal', newVal);
|
||||
}
|
||||
},
|
||||
activePage: function(newVal){
|
||||
// console.log('watch activePage', this.activePage);
|
||||
},
|
||||
pendingActivePage: function(newVal){
|
||||
// console.log('watch pendingActivePage', this.pendingActivePage);
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.handleNavItemBtn();
|
||||
@@ -259,7 +266,10 @@ export default {
|
||||
// so here we need to save to a pending state
|
||||
// 前端無法確定用戶稍後會按下彈窗上的哪個按鈕(取消還是確認、儲存),
|
||||
// 因此我們需要將其保存到待處理狀態
|
||||
this.setPendingActivePage(valueToSet);
|
||||
if(!this.shouldKeepPreviousPage) { // 若使用者不是按下取消按鈕或是點選按鈕時
|
||||
this.setPendingActivePage(valueToSet);
|
||||
}
|
||||
|
||||
|
||||
return valueToSet;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user