umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.42k stars 2.66k forks source link

[Bug] 同时指定非空base和history为memory时,无法正常访问 #12789

Open cui-xxu opened 1 week ago

cui-xxu commented 1 week ago

What happens?

配置文件中,同时指定base: '/dawn', history: { type: 'memory' },时,无法正常访问,浏览器白页面,控制台有警告“ is not able to match the URL "/" because it does not start with the basename, so the won't render anything.”

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

https://github.com/cui-xxu/umi-bug/tree/master

How To Reproduce

Steps to reproduce the behavior: 1. 2.

  1. mkdir bug1
  2. cd bug1
  3. git init
  4. git remote add umi-bug-github https://github.com/cui-xxu/umi-bug.git
  5. git pull umi-bug-github master
  6. npm i
  7. npm run start

Expected behavior 1. 2. 能正常显示首页

Context

github-actions[bot] commented 1 week ago

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。