2025-02-19 uniapp 微信小程序 监听全局路由变化

2025-02-18  本文已影响0人  半眼鱼

方法一

// uni.$on("showLoading", ()=>{
            //  this.$showToastL()
            // });
            // uni.$on("hideLoading", ()=>{store.commit("hideLoading")});   
        

方法二

      wx.onAppRoute(function (res) {
                that.$showToastL()
              })

隐藏路由回调API wx.onAppRoute,全局定义分享内容

https://blog.csdn.net/weixin_43760969/article/details/136901363

上一篇 下一篇

猜你喜欢

热点阅读