style:cas
Showing
1 changed file
with
2 additions
and
2 deletions
1 | /* | 1 | /* |
2 | * @Description: 项目权限 | 2 | * @Description: 项目权限 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-06-01 16:16:04 | 4 | * @LastEditTime: 2023-06-02 10:31:05 |
5 | */ | 5 | */ |
6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
7 | import axios from 'axios' | 7 | import axios from 'axios' |
... | @@ -45,7 +45,7 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -45,7 +45,7 @@ router.beforeEach(async (to, from, next) => { |
45 | if (process.env.NODE_ENV === 'development') { | 45 | if (process.env.NODE_ENV === 'development') { |
46 | localStorage.setItem('token', res.data.content.accessToken) | 46 | localStorage.setItem('token', res.data.content.accessToken) |
47 | } else { | 47 | } else { |
48 | Cookies.set('ACCESS_TOKEN', res.data.content.accessToken) | 48 | Cookies.set('token', res.data.content.accessToken) |
49 | } | 49 | } |
50 | window.location.href = localStorage.getItem('location') | 50 | window.location.href = localStorage.getItem('location') |
51 | 51 | ... | ... |
-
Please register or sign in to post a comment