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

子应用使用ruoyi框架,主应用使用microapp.router.push() 路径会莫名有# #1457

Open
pjczz opened this issue Nov 27, 2024 · 0 comments

Comments

@pjczz
Copy link

pjczz commented Nov 27, 2024

问题描述

问题的具体描述
子应用使用ruoyi框架,
主应用使用microapp.router.push() 路径会莫名有#
http://localhost:8080/home/system/role#/
(主应用子应用都是history模式)

复现步骤

1.启动主应用和子应用
2.点击导航栏的任意一个文字
image

路由成功跳转 但url中多了个#/

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。
image

image

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。
主应用地址 https://github.com/pjczz/trymicro
子应用地址 https://github.com/pjczz/new-yudao

环境信息

  • micro-app版本:
  • 主应用前端框架&版本:vue3 3.5.12 vite
  • 子应用前端框架&版本:vue3 3.5.12 vite
  • 构建工具&版本:vite 5.1.4
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