From cc499362b6eba119792e113796e4da029a70fc6d Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Sun, 27 Dec 2020 14:59:26 +0800
Subject: [PATCH] 服务单接口联调

---
 hive-app/common/jssdk/httpUtils.js |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/hive-app/common/jssdk/httpUtils.js b/hive-app/common/jssdk/httpUtils.js
index 51515d7..17af48d 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,10 @@
 		});
 	},
 	isNotLogin(err) {
-	    if (!err || !err.status) {
-	       return false;
-	    }
-	    return err.status === 700014;
+	    return !err || !err.status || err.status == 700014;
+	},
+	getRoleInfo(){
+		return StorageUtil.getStorage('userInfo','roleInfo')
 	}
  }
  export default httpUtils;
\ No newline at end of file

--
Gitblit v1.9.1