uniapp编译支付宝小程序

Vue warn: Property or method "toJSON" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties. found in ---> at node_modules/uview-ui/components/u-overlay/u-overlay.vue at node_modules/uview-ui/components/u-popup/u-popup.vue pages/category/index.vue

点击商品一直报错,导致弹窗的打开速度很慢

问题分析:toJSON全局搜索没有发现,搜索说是要加toJSON:null 或者在method中添加toJSON(){},均无效

解决:将点击事件里面的console.log,以及弹窗里面的console.log注释掉可以正常打开不报错了

相关推荐
OpenTiny社区10 小时前
🎨 看完 GenUI SDK 源码我悟了!
前端·vue.js·github
mqcode11 小时前
你项目里的 axios,封对了吗?从裸用到生产级的四步进化
vue.js·axios
Linsk13 小时前
组件 = 模板 + 业务逻辑
java·前端·vue.js
前端啊15 小时前
告别 el-table 打印难题,vue3-print-el-table 来了!
前端·vue.js
AprChell17 小时前
低代码设计器和低代码设计引擎架构综述
前端·vue.js·低代码
Ruihong17 小时前
🎉 VuReact 1.9.0 发布,支持 Vue 3.4 defineModel 编译到 React
vue.js·react.js·面试
英勇无比的消炎药17 小时前
TinyRobot 源码深度分析:OpenTiny 的 AI 对话组件库
前端·vue.js·github
行者全栈架构师2 天前
UniApp集成vk-uview-ui组件库详解:打造高效UI开发体验
前端·vue.js
Csvn2 天前
Vue 3 defineModel 翻车实录:多个 v-model 绑定到底怎么写?
前端·vue.js
Momo__2 天前
VueUse createReusableTemplate —— 单文件组件内的模板复用神器
前端·vue.js