Browse Source

路由优化

gzb
wangzhonglu 9 months ago
parent
commit
22e13380af
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      src/views/schoolSection/index.vue

+ 12
- 2
src/views/schoolSection/index.vue View File

@@ -68,14 +68,24 @@
68 68
               @click.native="routeDropdownChange()"
69 69
               tag="div"
70 70
               to="/school/appStrategyManage"
71
-              class="drop_down_list_item"
71
+              :class="[
72
+                'drop_down_list_item',
73
+                $route.path.includes('/school/appStrategyManage')
74
+                  ? 'router-link-active'
75
+                  : ''
76
+              ]"
72 77
               >策略管理</router-link
73 78
             >
74 79
             <router-link
75 80
               @click.native="routeDropdownChange()"
76 81
               tag="div"
77 82
               to="/school/appStrategyTemplate"
78
-              class="drop_down_list_item"
83
+              :class="[
84
+                'drop_down_list_item',
85
+                $route.path.includes('/school/appStrategyTemplate')
86
+                  ? 'router-link-active'
87
+                  : ''
88
+              ]"
79 89
               >策略模版</router-link
80 90
             >
81 91
           </div>

Loading…
Cancel
Save