Discover: Filters Save done.

This commit is contained in:
chiayin
2023-05-02 17:02:05 +08:00
parent 378d6ea550
commit c1df89fefb
7 changed files with 107 additions and 39 deletions

View File

@@ -133,16 +133,19 @@
*/
enterDiscover(file){
let logId;
let filterId;
if(file.fileType === 'Log'){
logId = file.id;
this.createFilterId = null;
logId = file.id;
this.$router.push({name: 'DiscoverLog', params: { logId: logId }})
}
else if(file.fileType === 'Filter') {
this.createFilterId = file.id;
logId = file.log.id;
filterId = file.id;
this.$router.push({name: 'DiscoverFilter', params: { filterId: filterId }})
}
this.$router.push({ name: 'Discover', params: { logId: logId }});
},
}
},
mounted() {
this.store.fetchEventLog();