From 7b76391180904d58156aef13abcac0256ff7fcc1 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 23 九月 2022 10:07:56 +0800
Subject: [PATCH] 1.登出接口接入
---
js/http.js | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/js/http.js b/js/http.js
index fa59595..547bd2a 100644
--- a/js/http.js
+++ b/js/http.js
@@ -4,10 +4,10 @@
*/
const httprequest = axios.create({
baseURL: "http://121.196.36.24:8001/api/",
- //timeout: 1000,
- headers: {
- token: "",
- },
+ timeout: 1000*10,
+ // headers: {
+ // token: "",
+ // },
});
// 璇锋眰鎷︽埅鍣�
@@ -29,9 +29,10 @@
if (res.code === 401) {
window.location = `${window.logoutUrl}?url=${window.location.origin}`;
}
-
- if (res.code === '302') {
- // console.log('123')
+ // 褰揷ode涓�300鏃惰繘琛屼竴涓彁绀�
+ if (res.code === '300') {
+ vant.Notify({ type: 'danger', message: res.Message });
+ // vant.Toast({ type: 'danger', message: res.Message , position: 'top',});
}
return response;
--
Gitblit v1.9.3