From 216f377862182c94471c0b452977ac7b4a113a9f Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 04 十二月 2023 09:16:58 +0800 Subject: [PATCH] 新增 --- src/utils/request.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 994fc5d..6664bbb 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -6,7 +6,7 @@ import cache from '@/plugins/cache' import { saveAs } from 'file-saver' import useUserStore from '@/store/modules/user' - +import router from '../router' let downloadLoadingInstance; // 是否显示重新登录 export let isRelogin = { show: false }; @@ -88,7 +88,9 @@ ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { isRelogin.show = false; useUserStore().logOut().then(() => { - location.href = '/index'; + // router.push('/homePage') + + location.href = '/homePage'; }) }).catch(() => { isRelogin.show = false -- Gitblit v1.9.2