diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 53af0c0..0684889 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -147,7 +147,11 @@ export default { else this.$router.push({name: 'Conformance', params: { type: type, fileId: fileId }}); break case 'PERFORMANCE': - this.$router.push({name: 'Performance'}); + if(type === 'rule') { + type = this.$route.params.checkType; + fileId = this.$route.params.checkFileId; + } + this.$router.push({name: 'Performance', params: { type: type, fileId: fileId }}); break; } // if(event.target.innerText === 'MAP') { diff --git a/src/views/Discover/Performance/index.vue b/src/views/Discover/Performance/index.vue index f8cf5c9..a855623 100644 --- a/src/views/Discover/Performance/index.vue +++ b/src/views/Discover/Performance/index.vue @@ -542,6 +542,7 @@ export default { async created() { this.isLoading = true; // moubeted 才停止 loading const routeParams = this.$route.params; + console.log(routeParams); let id = routeParams.fileId; let type = routeParams.type;