企业微信首页返回退出应用
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
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