fix Navbar.

This commit is contained in:
chiayin
2023-05-02 17:29:48 +08:00
parent c1df89fefb
commit 51b56c0ccb

View File

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