wx.chooseImage 导致页面跳回首页
selectCover: function(e){ var that = this; wx.chooseImage({ count: 1, sizeType: ["original","compressed"], sourceType: ['album', 'camera'], success: function (res) { that.setData({ cover: res.tempFilePaths[0] }); } }); }, |
代码如下,选择完照片后会导致小程序跳转到首页。
