From 5407a4e2aa49489312ecae42832895035e714f6f Mon Sep 17 00:00:00 2001 From: Cindy Chang Date: Mon, 22 Jul 2024 13:20:19 +0800 Subject: [PATCH] sonar --- src/components/AccountMenu/AcctMenu.vue | 2 +- .../Conformance/ConformanceSidebar.vue | 65 +++++-------------- src/components/Header.vue | 3 - src/components/Navbar.vue | 14 +--- 4 files changed, 20 insertions(+), 64 deletions(-) diff --git a/src/components/AccountMenu/AcctMenu.vue b/src/components/AccountMenu/AcctMenu.vue index b008233..59202ed 100644 --- a/src/components/AccountMenu/AcctMenu.vue +++ b/src/components/AccountMenu/AcctMenu.vue @@ -10,7 +10,7 @@
  • - + accountManagement {{i18next.t("AcctMgmt.acctMgmt")}}
  • - user-head diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 1f5589a..801c133 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -137,7 +137,7 @@ export default { noShowSaveButton: function() { return this.navViewName === 'UPLOAD' || this.navViewName === 'COMPARE' || this.navViewName === 'ACCOUNT MANAGEMENT' || - this.activePage === 'PERFORMANCE' ? true : false; + this.activePage === 'PERFORMANCE'; }, ...mapState(PageAdminStore, [ 'activePage', @@ -148,18 +148,9 @@ export default { }, watch: { '$route':'getNavViewName', - filterName: function(newVal, oldVal) { + filterName: function(newVal,) { this.filterName = newVal; }, - activePageComputedByRoute (newVal) { - // console.log('activePageComputedByRoute newVal', newVal); - }, - activePage: function(newVal){ - // console.log('watch activePage', this.activePage); - }, - pendingActivePage: function(newVal){ - // console.log('watch pendingActivePage', this.pendingActivePage); - }, }, mounted() { this.handleNavItemBtn(); @@ -175,7 +166,6 @@ export default { * @param {event} event 選取 Navbar 選項後傳入的值 */ onNavItemBtnClick(event) { - // console.log('onNavItemBtnClick'); let type; let fileId; let isCheckPage;