scorpio 2 years ago
parent
commit
d02b51e9c8
1 changed files with 6 additions and 2 deletions
  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) {