如何让顶部导航的返回按钮暂时失效
发布于 5 年前 作者 ylong 19008 次浏览 来自 问答

在调用接口的时候,这时候页面显示loading.这时候点击顶部导航的返回按钮,页面后退,而接口正在调用中。。。。。

  • 希望提供的能力

在调用接口处理完毕之前,怎样才能让返回按钮不能点击或者失效

1 回复
navigationStyleStringdefault导航栏样式,仅支持 default/custom。custom 模式可自定义导航栏,只保留右上角胶囊状的按钮

https://developers.weixin.qq.com/miniprogram/dev/framework/config.html

回到顶部