1 2 3 4
摘要: 路由拦截器 已路由为导向 router.beforeEach((to,from,next)= { if(to.path=='/login' || localStorage.getItem('token')){ next(); }else{ alert('请重新登录'); next('/login') 阅读全文
posted @ 2019-12-24 11:37 发哥奇妙IT之旅 阅读(2254) 评论(0) 推荐(1) 编辑
摘要: django 提供的加密算法 导包 from django.contrib.auth.hashers import make_password, check_password 加密 原密码 1234 password = '1234' 加密 make_password(password) pbkdf 阅读全文
posted @ 2019-12-24 11:30 发哥奇妙IT之旅 阅读(432) 评论(0) 推荐(1) 编辑