wx.openSetting,打不开设置页面

小程序 文章 2022-03-01 17:40 670 0 全屏看文

AI助手支持GPT4.0

wx.openSetting,打不开设置页面wx.openSetting, can't open the settings page

wx.openSetting,打不开设置页面
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.openSetting,打不开设置页面 工具 最新 最新

wx.openSetting,打不开设置页面。

比如我们有个页面,需要上传功能,用户点击了按钮,弹出授权信息,不小心点击了拒绝,这时候再点击按钮,调用了wx.openSetting方法,但是却没有跳转到相应的页面,按理说,我调用这个方法,就应该正常打开设置页面。

要不然用户会一直没法进行拍照操作,形成一个BUG。

相同的代码,我在Taro上却能正常调用起来,但是在微信原生上却不行,这个有办法处理吗。

Framework type problem type API / component name terminal type wechat version basic library version applet bug Wx Opensetting, unable to open the latest Wx Opensetting, unable to open the setting page. For example, we have a page that needs to be uploaded. The user clicks the button and the authorization information pops up. He accidentally clicks reject. At this time, he clicks the button and invokes Wx Opensetting method, but it does not jump to the corresponding page. Logically, if I call this method, I should open the setting page normally. Otherwise, the user will not be able to take photos and form a bug. I can call the same code normally on taro, but not on wechat native. Is there a way to deal with this.

回答:

社区技术运营专员-CJiang:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

前端喵:

Taro.openSetting()能正常调用

brave:

提供下可以复现问题的代码片段 https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

-EOF-

AI助手支持GPT4.0