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

fix: After the static route is switched, the interface goes blank #535

Closed
wants to merge 1 commit into from

Conversation

smileluck
Copy link
Contributor

Pull Request 详情

静态路由切换后,控制台出现警告信息。
Component inside <Transition> renders non-element root node that cannot be animated.
同时会导致,界面空白。路由切换成功,但页面渲染失败。

版本信息

v1.0-beta

解决了哪些问题

解决静态路由切换后,不显示组件问题

是否关闭了某个 Issue

@Azir-11
Copy link
Member

Azir-11 commented Jul 10, 2024

这个warn是合理的,无需修复

@honghuangdc
Copy link
Member

去看官方文档,用到了Transition组件,这个只能允许一个子组件
你这样会导致页面过渡动画失效,缓存失效

@smileluck
Copy link
Contributor Author

主要是,我添加了一个首页后,从首页跳转到登录页后,界面会空白

@Azir-11
Copy link
Member

Azir-11 commented Jul 10, 2024

主要是,我添加了一个首页后,从首页跳转到登录页后,界面会空白

自行排查解决

@honghuangdc
Copy link
Member

页面只允许一个根元素,还有问题加交流群

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

Successfully merging this pull request may close these issues.

3 participants