From 3d6a6942f73faa85f57b5683b59eefda22a63df5 Mon Sep 17 00:00:00 2001 From: laurieryayoi <14360417+laurieryayoi@users.noreply.github.com> Date: Wed, 23 Jan 2019 21:47:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84auth=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/material/index.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/material/index.tpl b/resources/views/material/index.tpl index 01cae8c4..27fb4976 100755 --- a/resources/views/material/index.tpl +++ b/resources/views/material/index.tpl @@ -720,7 +720,7 @@ const Login = { this.$router.replace('/user/panel'); }, this.globalConfig.jumpDelay); } else { - callConfig.msg += '登录失败Boommm'; + callConfig.msg = `登录失败Boommm,${ r.msg }`; callConfig.icon += 'fa-times-circle-o'; this.callMsgr(callConfig); window.setTimeout(()=>{ @@ -941,14 +941,14 @@ const Register = { _post('/auth/register', JSON.stringify(ajaxCon),'include').then((r)=>{ if (r.ret == 1) { - callConfig.msg += '注册成功meow~'; - callConfig.icon += 'fa-check-square-o'; + callConfig.msg = '注册成功meow~'; + callConfig.icon = 'fa-check-square-o'; this.callMsgr(callConfig); window.setTimeout(()=>{ this.$router.replace('/auth/login'); }, this.globalConfig.jumpDelay); } else { - callConfig.msg += 'WTF……注册失败'; + callConfig.msg = `WTF……注册失败,${ r.msg }`; callConfig.icon += 'fa-times-circle-o'; this.callMsgr(callConfig); window.setTimeout(()=>{