We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
原因:根据公司业务发展,菜单越来越多,addrouter 比较耗时间, 导致登录时间太长,想解决这个问题所以想把菜单和路由分开。所以切换到这个模式。如果有src/router/menus/modules/目录下的demo的话请提供一下。
const modules = import.meta.glob('./modules/**/*.ts', { eager: true });
The text was updated successfully, but these errors were encountered:
没明白你要做什么
Sorry, something went wrong.
根据公司业务发展,菜单越来越多,登录的时候,addrouter 比较耗时间, 导致登录时间太长,大概要6s的时间,想解决这个问题。所以想把权限模式 修改为 ROLE,路由和菜单分开。但是这样配置后,左侧菜单是空白的,
这个配置目前是作废的,我们没去规划这个功能
你那边有解决登录时动态路由加载过慢,导致登录等待时间比较长的方案吗?
zy
No branches or pull requests
版本号:3.5.1
问题描述:ProjectConfig 中权限模式 修改为 ROLE:前端模式(菜单路由分开),发现 src/router/menus/index.ts这个文件是用来获取菜单的,但是在当前目录下并没有modules 这个目录,自己把src/router/routes/modules 复制到src/router/menus 下 项目也报错。
原因:根据公司业务发展,菜单越来越多,addrouter 比较耗时间, 导致登录时间太长,想解决这个问题所以想把菜单和路由分开。所以切换到这个模式。如果有src/router/menus/modules/目录下的demo的话请提供一下。
截图&代码:
const modules = import.meta.glob('./modules/**/*.ts', { eager: true });
友情提示(为了提高issue处理效率):
The text was updated successfully, but these errors were encountered: