async onGetGoodPassword() {
this.kouling = '';
const { data } = await getGoodPassword();
this.kouling = data.password_simple;
},
async onBuy() {
await this.onGetGoodPassword();
uni.setClipboardData({
data: this.kouling,
success: function () {
console.log('success');
}
});
ztongxue
- 发布:2022-10-10 13:13
- 更新:2023-05-10 21:03
- 阅读:1454
ios14.2 微信H5中使用 uni.setClipboardData 异步复制不成功,安卓微信H5环境下没问题。
分类:uni-app
FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866
增加fail回调,看返回什么
ztongxue (作者)
返回错误信息:"errMsg": "setClipboardData: fail"
2022-10-10 15:12