Results 20 comments of yang1206

不好意思,最近太忙了,这是[复现](https://github.com/yang1206/vue3-antdv-admin-pwa),启动项目后浏览器刷新页面偶尔就会遇到这个问题

目前只测试过微信与支付宝小程序,以及h5,其他平台没有精力进行测试,理论上 uniapp 支持的平台应该都是没有什么大问题的,可能会有一些小的兼容性问题

我测试是可以打开的,反馈问题请附上测试机型,系统情况

> @yang1206 ihone xr ios 13.6.1 微信 8.0.49 复现 界面报错 > > set@[usr//appservice.app.js:59:40376](https://usr//appservice.app.js:59:40376) defineProperty@[usr//appservice.app.js:59:40695](https://usr//appservice.app.js:59:40695) defineProperty@[native code] [usr//appservice.app.js:59:30516](https://usr//appservice.app.js:59:30516) Ur@[usr//appservice.app.js:59:30562](https://usr//appservice.app.js:59:30562) a@[usr//appservice.app.js:59:249629](https://usr//appservice.app.js:59:249629) Xc@[usr//appservice.app.js:59:143006](https://usr//appservice.app.js:59:143006) setup@[usr//node-modules/nutui-uniapp/components/formitem/formitem.appservice.js:93:453](https://usr//node-modules/nutui-uniapp/components/formitem/formitem.appservice.js:93:453) io@[usr//appservice.app.js:59:32526](https://usr//appservice.app.js:59:32526) [usr//appservice.app.js:59:52218](https://usr//appservice.app.js:59:52218) [usr//appservice.app.js:59:52349](https://usr//appservice.app.js:59:52349) na@[usr//appservice.app.js:59:52366](https://usr//appservice.app.js:59:52366) [usr//appservice.app.js:59:66671](https://usr//appservice.app.js:59:66671) attached@[usr//appservice.app.js:59:66695](https://usr//appservice.app.js:59:66695) [lib/WASubContext.js:1:207314](https://lib/WASubContext.js:1:207314) [lib/WASubContext.js:1:207187](https://lib/WASubContext.js:1:207187) t@[lib/WASubContext.js:1:225682](https://lib/WASubContext.js:1:225682)...

> @yang1206 [github demo](https://github.com/de1ck/nutui-uniapp-demo/tree/de1ck/patch-30500?rgh-link-date=2024-04-29T09%3A27%3A44Z) 没有复现,请提供你的环境信息

请按照 issue 模板的提示提供对应的环境信息,你目前提供的信息对解决问题没有任何帮助

> [uni-helper/create-uni/actions/runs/9232741603/job/25404337665?pr=41](https://github.com/uni-helper/create-uni/actions/runs/9232741603/job/25404337665?pr=41) > > nutui-uni的ci没有通过😭 > > @yang1206 cc > [uni-helper/create-uni/actions/runs/9232741603/job/25404337665?pr=41](https://github.com/uni-helper/create-uni/actions/runs/9232741603/job/25404337665?pr=41) > > nutui-uni的ci没有通过😭 > > @yang1206 cc #42

我也遇到了这个问题,rich-text在 web 端自定义 style 就会导致内存泄漏

看了一下,这个组件使用 index 作为 key 其实没有什么问题,因为组件本身暂时并没有提供增改的操作

> > 参考 [xiaohe0601/xiaohe-uniapp-next@`nutui`](https://github.com/xiaohe0601/xiaohe-uniapp-next/tree/nutui?rgh-link-date=2024-08-16T06%3A08%3A00Z) 的配置,并且使用 volar `2.0.26` > > 这个仓库里的东西太多太重了,请问有最简单的实现吗,舅舅孩子😭 请问是不是跟这个有关系 [vuejs/pinia#2729](https://github.com/vuejs/pinia/discussions/2729) ~~经过测试, 最简单的方案应该就是按照文档配置,将~~ ``` "nutui-uniapp/global.d.ts" ``` ~~加入到你的`tsconfig.json`文件的`types`中, 然后将 volar 插件版本降级到`2.0.26`~~ 看了一下,组件库这里这里的类型模块声明也要改成`declare module 'vue'`, 这里可以等待下个版本或者新版 volar 完全支持 目前完全无痛的解决方案就是按照文档配置并将 volar 插件降级到`2.0.12`