diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index f377817..11b0d68 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -49,6 +49,9 @@ http.interceptors.response.use(response => { if (response.data && response.data.code === 401) { // 401, token失效 clearLoginInfo() router.push({name: 'login'}) + setTimeout(() => { + window.location.reload() + }, 300); } return response }, error => {