d17ca0f3 by renchao@pashanhoo.com

style:cas

1 parent 918f6962
/*
* @Description: 项目权限
* @Autor: renchao
* @LastEditTime: 2023-06-01 16:16:04
* @LastEditTime: 2023-06-02 10:31:05
*/
import Vue from 'vue'
import axios from 'axios'
......@@ -45,7 +45,7 @@ router.beforeEach(async (to, from, next) => {
if (process.env.NODE_ENV === 'development') {
localStorage.setItem('token', res.data.content.accessToken)
} else {
Cookies.set('ACCESS_TOKEN', res.data.content.accessToken)
Cookies.set('token', res.data.content.accessToken)
}
window.location.href = localStorage.getItem('location')
......