fix: setdata
parent
11f41e500a
commit
8ea2cfa7fe
|
@ -18,11 +18,12 @@ Page({
|
||||||
this.setData({
|
this.setData({
|
||||||
recording: true,
|
recording: true,
|
||||||
})
|
})
|
||||||
|
const that = this;
|
||||||
wx.startRecord({
|
wx.startRecord({
|
||||||
success (res) {
|
success (res) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
const tempFilePath = res.tempFilePath
|
const tempFilePath = res.tempFilePath
|
||||||
this.setData({
|
that.setData({
|
||||||
filePath: tempFilePath,
|
filePath: tempFilePath,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue