From 8ce668f4718902797dbacb7636ac0f52dc037183 Mon Sep 17 00:00:00 2001 From: chiayin Date: Wed, 7 Feb 2024 11:37:53 +0800 Subject: [PATCH] feat: Performance conformance page to performance page done. --- src/components/Navbar.vue | 6 +++++- src/views/Discover/Performance/index.vue | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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;