token登录验证(前端)
VUE
登录请求
1 | axios.post("http://localhost:8080/login", this.staff).then(res => { |
路由守卫
1 | router.beforeEach((to, from, next) => { |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Haog's blog!
评论
ValineDisqus
1 | axios.post("http://localhost:8080/login", this.staff).then(res => { |
1 | router.beforeEach((to, from, next) => { |