From 67da3f709ff61fea27b472a4266503bfa4eefeb5 Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Tue, 22 Dec 2020 14:51:40 +0800 Subject: [PATCH] gx --- 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