Bladeren bron

解决跳转页面菜单不高亮问题

yuhan 1 maand geleden
bovenliggende
commit
6538494b13
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      src/components/menu/index.js

+ 3 - 1
src/components/menu/index.js

@@ -82,8 +82,10 @@ export default {
       } else {
         /* IoT TPM相关 修改框架 */
         // 设置联锁添加页面高亮联锁总表
-        if(this.$route.path == '/interLock/summary/set'){
+        if(this.$route.path == '/interLock/summary/set' || this.$route.path == '/interLock/detail'){
           this.selectedKeys = ['/interLock/summary']
+        } else if (this.$route.path == '/interLock/history/detail'){
+          this.selectedKeys = ['/interLock/historyData']
         } else {
           this.selectedKeys = [routes.pop().path]
         }