refactor: Conformance Router - FILES page to Confomance page router refresh the page done.

This commit is contained in:
chiayin
2024-03-15 18:10:25 +08:00
parent 49b0e462a1
commit bc3e20abd0
3 changed files with 23 additions and 12 deletions

View File

@@ -149,6 +149,7 @@ export default {
},
async mounted() {
let params = this.$route.params;
let parent = this.$route.meta.parent;
switch (params.type) {
case 'log':
@@ -158,12 +159,12 @@ export default {
this.createFilterId = params.fileId;
break;
case 'rule':
switch (params.checkType) {
switch (parent.type) {
case 'log':
this.logId = params.checkFileId;
this.logId = parent.id;
break;
case 'filter':
this.createFilterId = params.checkFileId;
this.createFilterId = parent.id;
}
break;
}