Skip to content

Bug: 当组件为空时报错 #5856

@wu-clan

Description

@wu-clan

Version

Vben Admin V5

Describe the bug?

Image

这里有两种情况:

  1. 后端配置组件为空时
  2. 一级菜单未配置组件通过面包屑访问时

是否应添加一个默认组件或跳转到404页面?

另外默认路由包含 /dashboard/analytics,但是默认首页地址变量为 export const DEFAULT_HOME_PATH = '/analytics';

Reproduction

No

System Info

System:
    OS: macOS 13.7.4
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
    Memory: 32.81 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - /usr/local/opt/node@22/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.9.2 - /usr/local/opt/node@22/bin/npm
    pnpm: 9.15.7 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 134.0.6998.166
    Safari: 16.6

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions