Browse Source

平台导航默认选中样式 优化

gzb
guozhongbo 7 months ago
parent
commit
f05b56d428
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      src/router/platform.js
  2. 2
    2
      src/views/platformSection/index.vue

+ 2
- 2
src/router/platform.js View File

104
       }
104
       }
105
     },
105
     },
106
     {
106
     {
107
-      path: "admin",
107
+      path: "adminLog",
108
       component: () => import("@/views/platformSection/log/admin.vue"),
108
       component: () => import("@/views/platformSection/log/admin.vue"),
109
-      name: "admin",
109
+      name: "adminLog",
110
       meta: {
110
       meta: {
111
         keepAlive: true,
111
         keepAlive: true,
112
         isAuth: true,
112
         isAuth: true,

+ 2
- 2
src/views/platformSection/index.vue View File

87
             <router-link
87
             <router-link
88
               @click.native="routeDropdownChange()"
88
               @click.native="routeDropdownChange()"
89
               tag="div"
89
               tag="div"
90
-              to="/platform/admin"
90
+              to="/platform/adminLog"
91
               class="drop_down_list_item"
91
               class="drop_down_list_item"
92
               >管理员日志</router-link
92
               >管理员日志</router-link
93
             >
93
             >
141
     // 日志路由选中
141
     // 日志路由选中
142
     logSelected() {
142
     logSelected() {
143
       return (
143
       return (
144
-        this.$route.path.includes("/platform/admin") ||
144
+        this.$route.path.includes("/platform/adminLog") ||
145
         this.$route.path.includes("/platform/logDeviceExport")
145
         this.$route.path.includes("/platform/logDeviceExport")
146
       );
146
       );
147
     }
147
     }

Loading…
Cancel
Save