2***@qq.com
2***@qq.com
  • 发布:2020-10-28 17:11
  • 更新:2020-10-28 17:11
  • 阅读:3077

#插件讨论# 【 Popup 弹出层 - DCloud 】微信小程序this.$refs.popup.open is not a function

分类:uni-app

uniapp 发布app正常的,浏览器运行也正常,上传到微信开发者工具中以及发布微信小程序就提示this.$refs.popup.open is not a function,我看不少人遇到了这个问题,也有人解决了提供了方案,但是我都试了还是不行,因为我这个是链接蓝牙打印机,打印机又以及还给客户了,换方式的话很难办,还是想看看有没有办法解决。
<uni-popup ref="popupShare" type="share">
<uni-popup-share title="请选择打印机" @select="select"></uni-popup-share>
</uni-popup>

case 'print':
this.selecteditem = item
//判断如果bluetooth存在链接,就不再去查找,直接使用就行
if(this.existconnect == false){
// this.$refs.popupShare.open()
this.$refs['popupShare'].open()
}
else{
this.writeBLECharacteristicValue(item)
}
return

2020-10-28 17:11 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复