From c6cbf3d8fd4968d1a96f7e4450e812e86c3063eb Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 19 十月 2023 17:58:30 +0800
Subject: [PATCH] 111
---
bicycle/utils/http.interceptor.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/bicycle/utils/http.interceptor.js b/bicycle/utils/http.interceptor.js
index 636fba4..6dc4786 100644
--- a/bicycle/utils/http.interceptor.js
+++ b/bicycle/utils/http.interceptor.js
@@ -13,6 +13,13 @@
// 鍝嶅簲鎷︽埅鍣�
uni.$u.http.interceptors.response.use((response) => {
+ console.log(response.data.code)
+ if (response.data.code === 5113) {
+ uni.navigateTo({
+ url: '/pages/login/login'
+ });
+ return
+ }
if (response.data.code !== 200) {
uni.showToast({
title: response.data.message,
--
Gitblit v1.9.3