-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: 移动端高清方案支持配置 #335
Comments
测试发现 .umirc中有 base的时候手机端路由错误,组件出不来 |
收到,我晚点修下。这个上次有提到可能会有错。忘记覆盖场景了。 |
@KMBaby-zyl 确保 config 中的 base 以 |
@PeachScript 用的不是 umi 的 base 嘛? |
umi-hd 可以选择不使用吗? 我们业务都没有用meta做hd。 umi-hd会导致px的组件展示有问题 |
读的 window.routerBase 拼接的,有更好的方式吗 |
如果只是结尾 |
@PeachScript 这个问题,也有其他同学说了,要想个方式,传配置到主题。 |
@xiaohuoni 有想到比较好的方式吗?感觉只能加个 |
这个配置项有进展吗 |
这个bug修复了吗?部署就遇到这个问题了 |
v1.1.0-rc.5 开始,移动端主题支持配置高清方案了: // .umirc.ts
export default {
// ...
themeConfig: {
hd: {
rules: [] // 禁用高清方案
// 更多 rule 配置访问 https://github.com/umijs/dumi/blob/master/packages/theme-mobile/src/typings/config.d.ts#L7
}
}
} issue 关闭 |
版本
"dumi-theme-mobile": "^1.0.0-beta.2",
"dumi": "^1.1.0-beta.23",
效果
查看手机框内的iframe中的demo页面 http://localhost:8000/mtd/react-mobile~demos/Dialog-4 没有正常渲染
貌似umi的router没有进入demos
The text was updated successfully, but these errors were encountered: