徒言

Results 193 comments of 徒言

https://github.com/F-loat/ithome-lite 这个小程序的列表页数据几百条是不会有卡顿的情况的,当然可能和机型也有一定关系

使用 lazy 修饰符绑定应该不会有这个问题吧 `v-model.lazy="text"`

@sharkdong 我这边开发者工具中,输入后直接点击 button 提交,获取到的值是没问题的,真机暂时还没测试

暂时可以通过 chainWebpack 来新增插件 ``` .umirc.ts export default defineConfig({ // ... chainWebpack(config) { config .plugin('antd-dayjs-webpack-plugin') .use('antd-dayjs-webpack-plugin') .end(); } }); ```

这样可以 `document.querySelector('.scroll-container').scrollTop = scrollTop`

这样直接访问 [bar-app](https://f-loat.github.io/vue-cli-plugin-qiankun/bar-app) 吗,这个主要需要服务端做相应支持,使得直接访问子应用时返回主应用的 html 文件,单独访问子应用则使用特定的路径 [bar-app/source.html](https://f-loat.github.io/vue-cli-plugin-qiankun/bar-app/source.html)

你们的子应用有单独访问的需求吗,目前是怎么部署的? 我这个仓库相当于把所有应用部署在了一起,这样 nginx 其实正常配置一下就行,只是子项目不能生成 index.html 文件了 分开部署的话其实是没有这个问题的

默认会打开 foo-app 这个子应用,nginx 加一条这个配置就行 ``` location / { try_files $uri $uri/ /index.html; } ```

生产环境下改了 publicPath,你可以自己试试看先 [.env.production](https://github.com/F-loat/vue-cli-plugin-qiankun/blob/master/examples/foo-app/.env.production)

[前端微服务化进阶3 - 跨模块共享组件](https://alili.tech/archive/qh7x5i5szfh/) 这篇文章提供了一种实现思路,我这边实践看看,有比较好的解决方案的话会更新到示例中