-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
h5.router.basename 设置后,跳转页面not-found #15296
Comments
react也出现了 |
ZEJIA-LIU
added a commit
that referenced
this issue
Mar 5, 2024
18 tasks
ZEJIA-LIU
added a commit
that referenced
this issue
Mar 8, 2024
来信已收到!
|
在哪一个版本解决? |
来信已收到!
|
What are you doing? This question, in which version to deal with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
复现仓库
https://github.com/baoxiaowang/taro-case.git
浏览器版本: Chrome 122.0.6261.94
使用框架: Vue 3
复现步骤
配置config下的 h5.router.basename 后 所有的taro 跳转都会失效
观察源码(webpack://myApp/node_modules/@tarojs/router/dist/api.js?aed4)中对跳转路径做了拼接后和app.config.ts 中的pages选项做了incldues 比对,如果不在就会抛出页面没找到的错误
期望结果
期望配置basename = '/h5'
且配置pages:[
'pages/home/index',
'pages/test/index',
]时
Taro.navnavigateTo({
url:'pages/test/index'
})
能够正常跳转
实际结果
navigateTo:fail page h5/pages/test/index is not found
环境信息
补充信息
taro 3.6.24 bug
The text was updated successfully, but these errors were encountered: