企业微信首页返回退出应用

router.beforeEach(async (to, from, next) => {
    // alert(to.meta.keepAlive)
    let mark = to.fullPath.indexOf("code");
    if (mark != -1 && from.fullPath.indexOf('homePage') != -1) {
        wx.closeWindow()
    }

需要安wx-js-jdk

posted @ 2022-12-07 18:26  820820820  阅读(162)  评论(0)    收藏  举报