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
0 个回复