vbenjs / vue-vben-admin

A modern vue admin. It is based on Vue3, vite and TypeScript. It's fast!

Home Page:https://vben.vvbin.cn/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

标签页在刷新之后会丢失

cMing1997 opened this issue · comments

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

  • [*] 已阅读 文档.
  • [*] 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
  • [*] 已在 Issues 中搜索了相关的关键词
  • [*] 不是 ant design vue 组件库的 Bug

描述 Bug

配置了一个路由 类似于:

{
    path: 'template',
    name: 'ReportTemplate',
    component: () => import('@/views/reportMgr/template/index.vue'),
    meta: {
        title: '模板设置',
        icon: 'tabler:template',
        hideChildrenInMenu: true,
    },
    children: [
        {
            path: 'modifyTemp',
            name: 'ReportModifyTemp',
            component: () => import('@/views/reportMgr/modifyTemp/index.vue'),
            meta: {
                title: '新增模板',
                icon: 'eos-icons:templates-outlined',
                // currentActiveMenu: '/report/template',
            },
        },
    ],
},

然后是从 template -> modifyTemp 跳转,但是modifyTemp 不想出现在菜单中,所以就对 template 配置了 hideChildrenInMenu,虽然刷新之后,菜单还在,但是 标签页上,之前打开的 template 页面的标签不在了。

GIF 2024-5-22 11-25-16

复现 Bug

系统信息

  • 操作系统: win11
  • Node 版本: 21+
  • pnpm 版本: 8+