update 优化首页打开topNav不展开菜单问题

This commit is contained in:
LiuHao 2024-04-15 14:00:39 +08:00
parent 1fbc5afe75
commit 41f3d37db1

View File

@ -84,7 +84,10 @@ const childrenMenus = computed(() => {
// //
const activeMenu = computed(() => { const activeMenu = computed(() => {
const path = route.path; let path = route.path;
if (path === '/index') {
path = '/system/user';
}
let activePath = path; let activePath = path;
if (path !== undefined && path.lastIndexOf('/') > 0 && hideList.indexOf(path) === -1) { if (path !== undefined && path.lastIndexOf('/') > 0 && hideList.indexOf(path) === -1) {
const tmpPath = path.substring(1, path.length); const tmpPath = path.substring(1, path.length);