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

请教为啥我切换路由后页面是空白的? #3

Closed
ufoozhenghao opened this issue Jul 13, 2022 · 2 comments
Closed

请教为啥我切换路由后页面是空白的? #3

ufoozhenghao opened this issue Jul 13, 2022 · 2 comments

Comments

@ufoozhenghao
Copy link

仓库连接

路由那块没看懂 顺便请教一下开发的话往那个routes里面写啊?

@1esse
Copy link
Owner

1esse commented Jul 14, 2022

  1. 可能是vite的hmr和vue组件keep-alive冲突了,可以见Fix: HMR on keepalive components caused error (fix #5073) vuejs/core#5165,开发的时候建议把layout/index.ts中的keep-alive注释掉。
  2. route路由放在routes里面,dashboardRoute和constantRoutes是固定的。

@ufoozhenghao
Copy link
Author

ufoozhenghao commented Jul 14, 2022

ok 解决了

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

2 participants