refactor: Conformance Router - FILES page to Confomance page router refresh the page done.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user