diff --git a/src/utils/request.js b/src/utils/request.js index 175a806..b881ccf 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -84,7 +84,7 @@ service.interceptors.response.use(res => { MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { isRelogin.show = false; store.dispatch('LogOut').then(() => { - location.href = '/index'; + location.href = `${location.origin}/login`; }) }).catch(() => { isRelogin.show = false;