Authored by shixiang

添加服务器未返回数据时的处理

@@ -231,7 +231,7 @@ export function login(account, password) { @@ -231,7 +231,7 @@ export function login(account, password) {
231 }) 231 })
232 .catch((error) => { 232 .catch((error) => {
233 Alert.alert( 233 Alert.alert(
234 - error.message, 234 + error.message?error.message:'登录失败',
235 '', 235 '',
236 [{text: 'OK'}] 236 [{text: 'OK'}]
237 ); 237 );