yrik 4 年之前
父节点
当前提交
85dd6edbae
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      ruoyi-ui/src/layout/components/Sidebar/index.vue

+ 8 - 2
ruoyi-ui/src/layout/components/Sidebar/index.vue

@@ -63,9 +63,15 @@ export default {
             return this.tabIndex;
         },
         activeMenuT(){
-          let tabshow = {}
+          let tabshow = ''
           console.log(this.tabIndex,234)
-         return this.tabIndex
+          if(this.tabIndex == 'index'){
+             tabshow = '/' + this.tabIndex
+          }else{
+            tabshow = this.tabIndex
+          }
+         console.log(tabshow,345)
+         return tabshow
         },
         handleSide() {
           let add = []