Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

路由不定义“/”根号无法加载子菜单 #258

Open
ChinaBygones opened this issue Dec 8, 2022 · 2 comments
Open

路由不定义“/”根号无法加载子菜单 #258

ChinaBygones opened this issue Dec 8, 2022 · 2 comments
Labels
question Further information is requested

Comments

@ChinaBygones
Copy link

🧐 问题描述 Problem Description

路由不定义“/”根号无法加载子菜单
想把/换成user 作为用户后台来使用 但是无法使用 不定义 “/” 无法显示子菜单

💻 示例代码 Sample code

🚑 其他信息 Other information

image

@ChinaBygones ChinaBygones added the question Further information is requested label Dec 8, 2022
@sendya
Copy link
Member

sendya commented Jan 4, 2023

路由必须按绝对配置,比如 /xx

@sendya
Copy link
Member

sendya commented Jan 4, 2023

子路由可以是数组,你完全可以

{
  path: "/",
  name: "index",
  children: [
     { path: "/user", name:"user" },
     { path: "/admins", name:"admins" },
   ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants