From 987476871662581baa6e0d439132a69a5dd53330 Mon Sep 17 00:00:00 2001
From: li-guang <153605324@qq.com>
Date: Tue, 29 Dec 2020 10:57:43 +0800
Subject: [PATCH] 看板
---
hive-app/common/jssdk/httpUtils.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/hive-app/common/jssdk/httpUtils.js b/hive-app/common/jssdk/httpUtils.js
index 51515d7..24b9cf5 100644
--- a/hive-app/common/jssdk/httpUtils.js
+++ b/hive-app/common/jssdk/httpUtils.js
@@ -45,9 +45,15 @@
key: 'userInfo',
success: (res) => {
reject(result);
+ uni.navigateTo({
+ url: '/pages/login/index'
+ })
},
fail() {
reject(result);
+ uni.navigateTo({
+ url: '/pages/login/index'
+ })
}
});
}
@@ -59,10 +65,7 @@
});
},
isNotLogin(err) {
- if (!err || !err.status) {
- return false;
- }
- return err.status === 700014;
+ return !err || !err.status || err.status == 700014;
}
}
export default httpUtils;
\ No newline at end of file
--
Gitblit v1.9.1