开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
35.35k
stars
4.77k
forks
source link
vue3 <script <setup>语法糖里面的方法与<script>混用时,在<script>onShow,onPullDownRefresh等生命周期内,build的时读取不到,dev时没问题 #10456
Closed
CaicoLeung closed 2 years ago
相关平台
微信小程序
小程序基础库: 2.19.6 使用框架: Vue 3
复现步骤
期望结果
onShow内部可以访问this, 获取setup内部的变量
实际结果
this为undefined
环境信息