From 59da8ccf452d13ebb007739c67f45cc5e2ed1972 Mon Sep 17 00:00:00 2001
From: batman <978517621@qq.com>
Date: Mon, 13 Mar 2023 13:03:49 +0800
Subject: [PATCH] 用户管理修改展示
---
src/utils/request.ts | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 764d2a8..ed8cf58 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -44,7 +44,7 @@
// if(typeof JSON.parse(data) === 'object'){
// return JSONbig.parse(data);
// };
- return JSONbig.parse(data);
+ return JSONbig.parse(data);
} catch (err) {
// 转换失败返回一个空对象
return data
@@ -66,12 +66,12 @@
} else if (response.data.code && response.data.code === 'A0215') {
ElMessage.error('token失效');
// logOut;
- // useLoginApi()
- // .signOut()
- // .then(() => {
- // Session.clear();
- // window.location.href = '/';
- // });
+ useLoginApi()
+ .signOut()
+ .then(() => {
+ Session.clear();
+ window.location.href = '/';
+ });
}
// if(response.data.code && response.data.code !== '200'){
return Promise.resolve(response);
--
Gitblit v1.9.2