Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

hash 模式配置 base 后访问根路由页面白屏 #806

Open
PeachScript opened this issue May 24, 2022 · 0 comments
Open

hash 模式配置 base 后访问根路由页面白屏 #806

PeachScript opened this issue May 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@PeachScript
Copy link
Member

PeachScript commented May 24, 2022

Description

在 Umi 3(react-router@5)时,hash 模式 + 配置 base 后即便访问根节点还是会 fallback 渲染 /,控制台的提示:
图片

在 Umi 4(react-router@6)时,hash 模式 + 配置 base 后访问根节点会白屏,控制台的提示:
图片

是否和 history 模式一样做 / => /#/base 的重定向,hash 跳转只能在 client 做了

ref: remix-run/react-router#8427

@PeachScript PeachScript added the enhancement New feature or request label May 24, 2022
@PeachScript PeachScript changed the title 配置 base 后访问根路由页面白屏 hash 模式配置 base 后访问根路由页面白屏 May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant