Skip to content

不生效的静态路由 #1385

@wymli

Description

@wymli

Describe the bug (描述 Bug)

路由问题,clone最新的代码,即使https://github.com/vueComponent/ant-design-vue-pro/blob/master/src/store/index.js#L9 是设置的静态路由,但是yarn run serve跑起来可以在console看到最终还是发请求到mock拿到的动态路由(可以明确的看到这条log https://github.com/vueComponent/ant-design-vue-pro/blob/master/src/router/generator-routers.js#L88)

表现上,全量删除https://github.com/vueComponent/ant-design-vue-pro/blob/master/src/config/router.config.js#L17 这些配置不影响页面的路由,删除mock里的配置影响路由

To Reproduce (重现步骤)

clone最新代码即可

Expected behavior(你期待的是什么?)
使用静态路由

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions