diff --git a/frontend/src/performance/components/HeaderTopMenus.vue b/frontend/src/performance/components/HeaderTopMenus.vue index 145cf629d4..f186232e60 100644 --- a/frontend/src/performance/components/HeaderTopMenus.vue +++ b/frontend/src/performance/components/HeaderTopMenus.vue @@ -7,8 +7,13 @@ :default-active="activeIndex" @select="handleSelect" router> - 功能测试 - 性能测试 + + 功能测试 + + + 性能测试 + 系统设置 @@ -22,15 +27,15 @@ } }, watch: { - '$route' () { + '$route'() { this.handleSelect(this.activeIndex); } }, - mounted () { + mounted() { this.activeIndex = this.$route.matched[0].path || '/' }, methods: { - handleSelect (index) { + handleSelect(index) { this.activeIndex = index } }