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

定义路由时,无法自定义属性参数 #33

Open
Sun1090 opened this issue Aug 24, 2023 · 1 comment
Open

定义路由时,无法自定义属性参数 #33

Sun1090 opened this issue Aug 24, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Sun1090
Copy link

Sun1090 commented Aug 24, 2023

现有一个路由:{
id: 7,
name: 'user',
title: '用户管理',
target: '_self',
path: '/system/user',
component: '@/pages/user',
renderMenu: false,
parent: 'system',
permission: null,
cacheable: true,
}
想法(如果不好搞的话,我就只能多去新建文件来解决了):1、比如在里面随意添加自定义属性
2、可以设置固定的 params、query 的属性或者属性值

@iczer
Copy link
Contributor

iczer commented Nov 3, 2023

你说的应该是动态路由

  1. 可以随意添加属性,修改类型定义文件,然后在获取菜单数据方法里解析自己添加的定义数据即可。
  2. 下版本即将支持

@iczer iczer added the good first issue Good for newcomers label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants