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

ant-design-pro 1.0版以后加载页面的问题 #852

Closed
denggy opened this issue Jan 31, 2018 · 3 comments
Closed

ant-design-pro 1.0版以后加载页面的问题 #852

denggy opened this issue Jan 31, 2018 · 3 comments

Comments

@denggy
Copy link

denggy commented Jan 31, 2018

我发现至从1.0的版本以后 首次点击菜单后 加载页面样式不一样了
1.0版本之前点击菜单加载页面 效果如下图
loading
就是首次 加载的页面都会有这个 loading的效果 之后 就不会再有了

1.0版本之后 点击菜单加载 页面 效果如下图
normal
感觉1.0版本之后 首次点击菜单 直接加载的是页面的数据 没有组件loading的那种感觉

PS:最奇怪是1.0版本之后 只有“监控页面”这个菜单首次点击 有那个loading的效果 其他全无
感觉好奇怪!
以上 求大佬们给个答复!

@longzhaobi
Copy link
Contributor

上面那个图的loading是正在加载组件,相当于正在按需引入js,如果不这样弄,网络不好的时候就空白页体验不好,所以有个loading表示正在加载组件,这个是dva2.0提供的功能,如果你加载过了那就直接显示组件,下面这个loading状态,是antd提供的功能,表示正在请求数据。

@chenshuai2144
Copy link
Collaborator

chenshuai2144 commented Jan 31, 2018

@denggy 因为我们为了方便部署关掉了代码分割。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants