diff --git a/pages/API/voice/voice.js b/pages/API/voice/voice.js index 52e3861..f31197c 100644 --- a/pages/API/voice/voice.js +++ b/pages/API/voice/voice.js @@ -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, }) },