隐私设置也加了
保存图片授权打开设置看不到相册设置?开发版、体验版都能正常授权 就正式版不行 savePosterTap() { let that = this // 向用户发起授权请求 uni.authorize({ scope: 'scope.writePhotosAlbum', success: (e) => { console.log(e) // 已授权 that.downLoadImg() }, fail: () => { // 拒绝授权,获取当前设置 uni.getSetting({ success: (result) => { console.log(result) if (!result.authSetting['scope.writePhotosAlbum']) { that.isAuth() } } }) } }) }, downLoadImg() { let that = this uni.showLoading({ title: '加载中' }) uni.downloadFile({ url: that.promote_img, success: ({ tempFilePath, statusCode }) => { uni.hideLoading() if (statusCode === 200) { uni.saveImageToPhotosAlbum({ filePath: tempFilePath, success(e) { console.log(e) uni.$u.toast('保存成功') that.isshow = false }, fail(e) { console.log(e) uni.$u.toast('保存失败') that.isshow = false } }) } }, fail: (error) => { console.log(error) uni.$u.toast('失败啦') } }) }, /* * 引导用户开启权限 */ isAuth() { uni.showModal({ content: '检查到您没打开保存到相册的权限,是否现在去打开?', success: (res) => { if (res.confirm) { uni.openSetting({ success: (result) => { console.log(result.authSetting) }, fail: (e) => { console.log(e) } }) } } }) }
2023-07-27我里面没有这个console.dir 都是 console.log部分手机就存在这个问题~体验版又没有到正式版就出来了
微信报出的错误console.dir is not a function;at pages/detail/detail detail function;at api request success callback function 这是什么情况出现的错误怎么解决?
2018-06-12