-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Closed
Labels
Description
Version
Vben Admin V5
Describe the bug?
点击一级菜单时,如果是以新窗口打开,期望原窗口的菜单状态不变(不应切换选中的菜单项)
Reproduction
- fork项目
- 修改
vue-vben-admin\playground\src\router\routes\modules\vben.ts为
const routes: RouteRecordRaw[] = [
// ...
{
component: () => import('#/views/_core/about/index.vue'),
meta: {
icon: 'lucide:copyright',
link: 'https://github.com/vbenjs/vue-vben-admin', // 外部链接
order: 9999,
title: $t('demos.vben.about'),
},
name: 'VbenAbout',
path: '/vben-admin/about',
},
{
component: () => import('#/views/_core/about/index.vue'),
meta: {
icon: 'lucide:copyright',
openInNewWindow: true, // 新窗口打开
order: 9999,
title: $t('demos.vben.about'),
},
name: 'VbenAbout',
path: '/vben-admin/about',
},
];- 布局模式 选 ”双列菜单“ 或 "水平"
- 点击以上两个菜单
System Info
System:
OS: Windows 11 10.0.22631
CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H
Memory: 10.52 GB / 31.63 GB
Binaries:
Node: 20.10.0 - D:\NVM\nodejs\node.EXE
npm: 10.2.3 - D:\NVM\nodejs\npm.CMD
Browsers:
Edge: Chromium (131.0.2903.112)
Internet Explorer: 11.0.22621.3527Relevant log output
Validations
- Read the docs
- Ensure the code is up to date. (Some issues have been fixed in the latest version)
- I have searched the existing issues and checked that my issue does not duplicate any existing issues.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.