在v-if中使用wxs中的函数

- 发布:2024-01-20 21:05
- 更新:2025-07-30 15:35
- 阅读:186
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: Alpha
HBuilderX版本号: 3.99
第三方开发者工具版本号: 1.06
基础库版本号: 3.3.2
项目创建方式: HBuilderX
操作步骤:
预期结果:
vendor.js? [sm]:7980 [Vue warn]: Property or method "handler" 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
vendor.js? [sm]:7980 [Vue warn]: Property or method "handler" 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
实际结果:
实际结果是该返回函数的返回值
实际结果是该返回函数的返回值
bug描述:
在v-if中使用wxs中的函数报错,问题原因是在v-if中的函数,在render中被写入

