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

[Bug]: 嵌套级别的初始化路由重定向,设置错误 #25

Open
jikel-zhang opened this issue Jan 13, 2025 · 0 comments
Open

[Bug]: 嵌套级别的初始化路由重定向,设置错误 #25

jikel-zhang opened this issue Jan 13, 2025 · 0 comments

Comments

@jikel-zhang
Copy link

软件版本

node:18.19.0 pnpm:9.15.1

运行环境

Windows (64)

运行架构

None

重现步骤

发现了一个问题,配置使用静态路由的情况下

  1. 假设我命名了一级嵌套的路由代码文件,启动项目通过配置的插件自动生成了JSON文件
    2.项目中使用get RoutePath 方法,通过路由name 查询自动生成的JSON文件,找到路径并且设置成路由重定向地址

BUG 问题就是具有嵌套关系的文件生成的路由地址,和插件形成的地址对不上,导致路由重定向地址少了它父级的url
1
2
3
4
5
BUG

期望的结果是什么?

无论是一级菜单,还是嵌套级别的菜单, 都能查找到正确的path , 嵌套级别的菜单不能只找到子级的, 要匹配父级+子级的完成的路径
BUG
正确的

实际的结果是什么?

嵌套的文件路由重定向,只有子级的,少了父级的所以找不到

日志记录(可选)

No response

补充说明(可选)

No response

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

No branches or pull requests

1 participant