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
标签:返回,indexOf,微信,mark,首页,fullPath,wx From: https://www.cnblogs.com/laroux/p/16963962.html