fix: setdata

master
limin 2020-12-09 17:27:35 +08:00 committed by XuPeng
parent 11f41e500a
commit 8ea2cfa7fe
1 changed files with 2 additions and 1 deletions

View File

@ -18,11 +18,12 @@ Page({
this.setData({
recording: true,
})
const that = this;
wx.startRecord({
success (res) {
console.log(res);
const tempFilePath = res.tempFilePath
this.setData({
that.setData({
filePath: tempFilePath,
})
},