From a8dd05927a7ca3b34f7729604744a24375f3549f Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期四, 10 四月 2025 17:28:34 +0800 Subject: [PATCH] fix:修改设备接口 --- src/utils/request.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/utils/request.js b/src/utils/request.js index 052c672..dc7c3f5 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,6 +1,6 @@ import axios from 'axios' import { ElNotification , ElMessageBox, ElMessage, ElLoading } from 'element-plus' -import { getToken } from '@/utils/auth' +import {getToken, removeToken} from '@/utils/auth' import errorCode from '@/utils/errorCode' import { tansParams, blobValidate } from '@/utils/ruoyi' import cache from '@/plugins/cache' @@ -91,6 +91,8 @@ isRelogin.show = true; ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { isRelogin.show = false; + removeToken() + window.location.reload(); // useUserStore().logOut().then(() => { // location.href = '/index'; // }) -- Gitblit v1.9.3