const doSave = (filePath) => {
wx.saveImageToPhotosAlbum({
filePath,
success: () => {
wx.hideLoading();
wx.showToast({ title: '已保存到相册', icon: 'success' });
},
fail: (err) => {
wx.hideLoading();
if (err.errMsg && err.errMsg.indexOf('auth deny') !== -1) {
wx.showModal({
title: '提示',
content: '需要您授权保存图片到相册',
confirmText: '去授权',
success: (r) => {
if (r.confirm) wx.openSetting();
},
});
} else {
wx.showToast({ title: '保存失败', icon: 'none' });
}
},
});
};

报什么错?看看是不是隐私协议的问题
具体报什么错误信息