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

在micro-app的子应用中,在登录页面使用Link href="/#/register" 不能跳转到注册页面,而使用 navigate('/register')可以跳转过去,这样老项目引入到微服务都得改造把<Link href >改成navigate(“”“”) #1252

Open
heqiao-github opened this issue Jun 11, 2024 · 2 comments
Labels

Comments

@heqiao-github
Copy link

Describe the bug

在micro-app的子应用中,在登录页面使用Link href="/#/register" 不能跳转到注册页面,而使用 navigate('/register')可以跳转过去,这样老项目引入到微服务都得改造把改成navigate(“”“”)

To Reproduce

Screenshots

If possible, please upload screenshots of the code, console, terminal, etc. to help us understand your problem.

Reproduce repository

Please provide a condensed code repository and upload it to your own github to help us reproduce your problem.

Environment

  • micro-app version: ^1.0.0-rc.5
  • framework of base app & version: react18版本项目
  • framework of sub app & version: react18版本项目
  • Build tools & version: webpack5
@bailicangdu
Copy link
Member

Link和navigate本质上跳转方式都是一样的,检查一下地址是否正确

@heqiao-github
Copy link
Author

heqiao-github commented Jun 12, 2024 via email

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

No branches or pull requests

2 participants