Skip to content

[BUG] Report bug #281

Description

@hejianghu

🐛 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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions