【BUG】showLoading未正常消失

发布于 7 年前作者 junshen7979 次浏览最后编辑 7 年前来自 ask

* Bug 表现是什么?预期表现是什么?

表现:hideLoading无法将loading框正常消失,且loading框不会覆盖掉前一个loading框。

预期:当执行到showToast或showLoading的时候,前面的loading都应该被覆盖。

* 如何复现?

先执行showLoading再执行hideLoading

* 提供一个最简复现 Demo

onShow() {
 wx.showLoading({
   title: 'test1'
 })
 setTimeout(() => {
   wx.hideLoading();
   wx.showLoading({
     title: 'test2'
   })
   setTimeout(() => {
     wx.hideLoading();
     wx.showToast({
       title: 'suc'
     })
   }, 300);
 }, 300);
}
3 回复
wpeng
wpeng1 楼6 年前

但是可以让 showToast setTimeout 显示

jieyan
jieyan2 楼6 年前

你好,问题已复现,我们会尽快进行修复。

pengxiuying
pengxiuying3 楼5 年前

hideLoading 和 showToast 一起使用时,确实会出现问题。