fix Navbar.
This commit is contained in:
@@ -75,16 +75,6 @@ export default {
|
||||
filterName: function(newVal, oldVal) {
|
||||
this.filterName = newVal;
|
||||
},
|
||||
// createfilterId: function(newVal, oldVal) {
|
||||
// // this.filterName = newVal;
|
||||
// console.log(newVal);
|
||||
// console.log(oldVal);
|
||||
// },
|
||||
postRuleData: function(newVal, oldVal) {
|
||||
// this.filterName = newVal;
|
||||
console.log(newVal);
|
||||
console.log(oldVal);
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
const store = filesStore();
|
||||
@@ -111,14 +101,19 @@ export default {
|
||||
},
|
||||
getNavViewName() {
|
||||
this.navViewName = this.$route.name.toUpperCase();
|
||||
if(this.navViewName === 'DISCOVERLOG' || this.navViewName === 'DISCOVERFILTER'){
|
||||
this.navViewName = 'DISCOVER';
|
||||
}
|
||||
},
|
||||
showAlert() {
|
||||
// 先判斷有沒有 filter Id,有就儲存 return,沒有就往下走
|
||||
// 沒有 filter Id, 有暫存 tempFilterId Id 可以另存新檔
|
||||
console.log(this.createfilterId);
|
||||
if(this.createfilterId) {
|
||||
this.allMapDataStore.updataFilter();
|
||||
console.log(this.isUpdataFilter);
|
||||
if(this.isUpdataFilter) savedSuccessfully(this.filterName);
|
||||
this.tempFilterId = false
|
||||
}else{
|
||||
saveFilter(this.allMapDataStore.addFilterId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user