85ab10c9 by 苗菁

feat: 单点登录token

1 parent de2be3ea
...@@ -23,7 +23,7 @@ router.beforeEach(async (to, from, next) => { ...@@ -23,7 +23,7 @@ router.beforeEach(async (to, from, next) => {
23 let hasAddDict = store.state.dict.addDict 23 let hasAddDict = store.state.dict.addDict
24 let hasAddRoute = store.state.permission.addRoutes 24 let hasAddRoute = store.state.permission.addRoutes
25 // cas操作 25 // cas操作
26 const token = localStorage.getItem("token") || Cookies.get('token'); 26 const token = localStorage.getItem("token") || Cookies.get('ACCESS_TOKEN');
27 if (to.path === '/login') { 27 if (to.path === '/login') {
28 if (token) { 28 if (token) {
29 next('/') 29 next('/')
......