86f1e19d by renchao@pashanhoo.com

style:cas

1 parent 32b13d6c
/*
* @Description: 项目权限
* @Autor: renchao
* @LastEditTime: 2023-06-02 10:31:05
* @LastEditTime: 2023-06-02 10:44:17
*/
import Vue from 'vue'
import axios from 'axios'
......@@ -22,7 +22,7 @@ router.beforeEach(async (to, from, next) => {
let hasAddDict = store.state.dict.addDict
let hasAddRoute = store.state.permission.addRoutes
// cas操作
const token = localStorage.getItem("token")
const token = localStorage.getItem("token") || Cookies.get('token');
if (to.path === '/login') {
if (token) {
next('/')
......