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

vue3+vite 子应用如何实现子应用内部路由跳转 #695

Open
875908494 opened this issue Aug 11, 2023 · 1 comment
Open

vue3+vite 子应用如何实现子应用内部路由跳转 #695

875908494 opened this issue Aug 11, 2023 · 1 comment

Comments

@875908494
Copy link

问题描述:子应用使用vue3+vite构建,官方提供的appHistory和appLink 在子应用中无法正常使用,目前使用的window.history.pushState的方式进行跳转的,但是部署到线上后就跳转不了了。

1、vue项目中使用appHistory报错

image
image

2、本地使用window.history.pushState能够正常跳转,部署到线上后报错,无法跳转。

image
image

请问vue3+vite的应该还有什么方式可以跳转路由呢

@875908494
Copy link
Author

@ClarkXia @maoxiaoke 请大佬看看呢,谢谢

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

1 participant