wx.getClipboardData({
success: res => {
var str = res.data.trim()
if (str) {
that.setData({
defaultUrl: str
})
}
}
})
wx.setClipboardData({
data: '',
})
wx.saveVideoToPhotosAlbum({
filePath: file.tempFilePath,
success: function (o) {
t.showToast('保存成功', 'success'), setTimeout(function () {
wx.setClipboardData({
data: '',
})
that.goBack()
}, 1000)
},
fail: function (o) {
that.showToast('保存失败')
}
})