umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
349 stars 238 forks source link

[plugin-access]权限路由生成有问题 #392

Open xiexingen opened 4 years ago

xiexingen commented 4 years ago

What happens?

image


如图所示,当权限定义为对象形式的时候,生成的.umi临时文件里面的routes是错误的, 同时发现,如果已经npm run start启动了服务 再去修改路由里面的access的值,.umi/core/routes文件内容不会更新。

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue. Use yarn create @umijs/umi-app then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

sorrycc commented 4 years ago

给个复现看看。

xiexingen commented 4 years ago

给个复现看看。

windows 10 下,基本上是必现的;我家里的电脑,公司的电脑 都会