Ant-design-pro: 最新pull下来的项目,启动后浏览器报错

Created on 7 Sep 2018  ·  8Comments  ·  Source: ant-design/ant-design-pro

Most helpful comment

Warden-Thresh正解,Local Storage中删除antd-pro-authority就可以了

All 8 comments

Translation of this issue:


The latest pull down project, the browser error after startup

qq 20180907095632
image

\src\utils\authority.js
第九行修改一下
authority = [JSON.parse(authority)]; => authority = [authority];

@yrhgame 来个 PR

应该是浏览器缓存旧版认证信息的原因

Warden-Thresh正解,Local Storage中删除antd-pro-authority就可以了

看来适配的还是不够。。

可以兼容一下。

尝尝鲜

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaoding picture kaoding  ·  3Comments

ghost picture ghost  ·  3Comments

zhuanglong picture zhuanglong  ·  3Comments

RichardStark picture RichardStark  ·  3Comments

happier2 picture happier2  ·  3Comments