uni-app vue3 在 v-if 中使用 wxs 报错
uni-app vue3 在 v-if 中使用 wxs 报错
| 类别 | 信息 |
|---|---|
| 产品分类 | uniapp/小程序/微信 |
| PC开发环境 | Windows |
| 操作系统版本 | Windows 10 20H2 |
| 开发工具 | HBuilderX |
| 工具版本 | 3.3.0 |
| 第三方工具 | 1.05.2109131 |
| 基础库版本 | 2.21.0 |
| 项目创建方式 | HBuilderX |
操作步骤:
<template>
<view>
<view v-if="test.aa()">123</view>
</view>
</template>
<script module="test" lang="wxs">
function aa() {
return true
}
module.exports = {
aa: aa
}
</script>
预期结果:
- 正常运行
实际结果:
- 运行时报错
- ReferenceError: test is not defined
bug描述:
- vue3 在 v-if 中使用 wxs 报错,vue2 正常
更多关于uni-app vue3 在 v-if 中使用 wxs 报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复


