From aee07d615439ffa62a8d059c30c6a4374e9f3e8d Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Wed, 9 Jun 2021 18:03:34 +0800 Subject: [PATCH] no message --- pages/login/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/login/index.js b/pages/login/index.js index e1951eb..e53ab4e 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -196,6 +196,7 @@ Page({ util.showToast('获取用户信息失败,请注册登录') this.setData({ loging: false, regist: true}) } else { + util.showToast(err) this.setData({ loging: false}) } config.header = null @@ -203,6 +204,8 @@ Page({ }).catch(err => { if(err !== null && err instanceof Object) { util.showToast('服务器错误') + } else { + util.showToast(err) } config.header = null this.setData({ loging: false})