01 2021 档案
摘要:// 获取验证码 getCodes(){ const TIME_COUNT = 60; if (!this.timer) { this.count = TIME_COUNT; this.show = false; this.getcode() this.timer = setInterval(()
阅读全文
摘要:vue路由守卫不仅可以控制跳转路由,也可以做到持久登录 // 路由守卫 router.beforeEach((to, from, next) => { let token = localStorage.getItem('token') if(to.name){ if (!token && to.na
阅读全文