token失效跳转修改
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | /* | 2 | /* |
3 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 | 3 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 |
4 | * @Autor: renchao | 4 | * @Autor: renchao |
5 | * @LastEditTime: 2023-08-16 15:16:49 | 5 | * @LastEditTime: 2023-09-20 14:20:39 |
6 | */ | 6 | */ |
7 | import axios from 'axios' | 7 | import axios from 'axios' |
8 | import Router from '@/router' | 8 | import Router from '@/router' |
... | @@ -77,7 +77,7 @@ service.interceptors.response.use( | ... | @@ -77,7 +77,7 @@ service.interceptors.response.use( |
77 | Router.replace({ | 77 | Router.replace({ |
78 | path: '/login', | 78 | path: '/login', |
79 | query: { | 79 | query: { |
80 | redirect: Router.currentRoute.value.fullPath | 80 | redirect: Router.currentRoute.fullPath |
81 | } | 81 | } |
82 | }) | 82 | }) |
83 | return false | 83 | return false | ... | ... |
-
Please register or sign in to post a comment