01 2021 档案

摘要:// 获取验证码 getCodes(){ const TIME_COUNT = 60; if (!this.timer) { this.count = TIME_COUNT; this.show = false; this.getcode() this.timer = setInterval(() 阅读全文
posted @ 2021-01-30 17:58 我有头盔 阅读(245) 评论(0) 推荐(0)
摘要:vue路由守卫不仅可以控制跳转路由,也可以做到持久登录 // 路由守卫 router.beforeEach((to, from, next) => { let token = localStorage.getItem('token') if(to.name){ if (!token && to.na 阅读全文
posted @ 2021-01-29 12:05 我有头盔 阅读(96) 评论(0) 推荐(0)