Commit 7721e45b authored by 李苏's avatar 李苏 💬

弹框信息,路由删除所有定时器

parent bd7d853d
......@@ -13,6 +13,12 @@ const router = new Router({
const whiteList = ['/pages/login/update','/pages/login/login','/pages/login/fwqsz']
//全局路由前置守卫
router.beforeEach((to, from, next) => {
/* 清除所有定时器 */
let timer=setInterval(()=>{console.log(timer)},10000)
clearInterval(timer)
for(let i=0;i<=timer;i++){
clearInterval(i)
}
let token=uni.getStorageSync(ACCESS_TOKEN);
if(token){
next()
......
......@@ -80,7 +80,7 @@
}
});
} else {
this.$tip.alert("请先扫描有效托盘信息");
this.$tip.alert("请先扫描有效地码信息");
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment