scorpio 2 年之前
父節點
當前提交
d02b51e9c8
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/layout/left.vue

+ 6 - 2
src/layout/left.vue

@@ -72,10 +72,14 @@ export default {
   },
   methods: {
     init () {
-      if (this.currentPage.indexOf('/database') > -1) {
+      if (this.currentPage.indexOf('/task') > -1) {
         this.active = 1
-      } else if (this.currentPage.indexOf('/recycle') > -1) {
+      } else if (this.currentPage.indexOf('/database') > -1) {
         this.active = 2
+      } else if (this.currentPage.indexOf('/recycle') > -1) {
+        this.active = 3
+      } else {
+        this.active = 0
       }
     },
     navClick (item, index) {