From 935f34238713b63a1f44fb12d09cd2512b1bd46d Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Wed, 23 Dec 2020 16:21:18 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/jyyforjava/hive-app --- 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