wx.uploadfile 上传成功后页面会刷新
[代码]wx.uploadFile({[代码][代码] [代码][代码]url: api + [代码][代码]'files/upload'[代码][代码],[代码][代码] [代码][代码]filePath: res.tempFilePaths[i],[代码][代码] [代码][代码]name: [代码][代码]'file'[代码][代码],[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]"content-type"[代码][代码]: [代码][代码]"multipart/form-data"[代码][代码],[代码][代码] [代码][代码]"x-auth-token"[代码][代码]: that.data.token[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]let data = JSON.parse(res.data);[代码][代码] [代码][代码]that.data.uploadFileList.push(data.path)[代码][代码] [代码][代码]wx.hideLoading();[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]wx.hideLoading();[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'上传失败!'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'none'[代码][代码],[代码][代码] [代码][代码]duration: 1000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]因为这个图片上传之后会刷新页面,导致我页面上面的数据都被初始化了,这个问题请问下大家该如何解决?