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;