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] Report bug #281

Open
hejianghu opened this issue May 18, 2023 · 0 comments
Open

[BUG] Report bug #281

hejianghu opened this issue May 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hejianghu
Copy link

🐛 Bug 描述 Bug description

TS 的环境中,按照主页的方式
image

router.getRoutes() 的返回值值直接传递给 clearMenuItem 方法时,提示类型“RouteRecordNormalized[]”的参数不能赋给类型“RouteRecordRaw[] | RouteRecordNormalized[]”的参数。 不能将类型“RouteRecordNormalized[]”分配给类型“RouteRecordRaw[]”。

image

版本:
pro-layout 3.2.3
vue-router: 4.1.5

🏞 期望结果 Desired result

不应该有任何报错

🚑 其他信息 Other information

大致看了下,两边的类型确实对应不上,请问这个问题能修复一下吗?

@hejianghu hejianghu added the bug Something isn't working label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant