摘要: <script> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = 阅读全文
posted @ 2019-09-30 15:29 CatherLee 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 验证过程: 首次登录时,后端服务器判断用户账号密码正确之后,根据用户id、用户名、定义好的秘钥、过期时间生成 token ,返回给前端; 前端拿到后端返回的 token ,存储在 localStroage 和 Vuex 里; 前端每次路由跳转,判断 localStroage 有无 token ,没有 阅读全文
posted @ 2019-09-30 14:53 CatherLee 阅读(5982) 评论(0) 推荐(0) 编辑