wx.uploadFile成功后自动刷新页面
代码如下: [代码]wx.uploadFile({[代码] [代码] [代码][代码]url: api.saveCanvas,[代码] [代码] [代码][代码]filePath: canvas.tempFilePath,[代码] [代码] [代码][代码]name: [代码][代码]'file'[代码][代码],[代码] [代码] [代码][代码]formData: {[代码] [代码] [代码][代码] [代码][代码]'name'[代码][代码]: [代码][代码]this[代码][代码].data.userInfo.nickName,[代码] [代码] [代码][代码] [代码][代码]'avatarUrl'[代码][代码]: [代码][代码]this[代码][代码].data.userInfo.avatarUrl,[代码] [代码] [代码][代码] [代码][代码]'openId'[代码][代码]: app.globalData.openId[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]success: res => {[代码] [代码] [代码][代码] wx.navigateTo({[代码] [代码] [代码][代码] url: [代码][代码]'/pages/share/share'[代码] [代码] [代码][代码] })[代码] [代码] [代码][代码]}[代码] [代码]})[代码] 成功后的wx.navigateTo总是闪一下就刷新回首页了,两个页面均没有报错。通过预览模式在手机微信客户端上是正常的,求指点