From 172577f3c4e3345104077cc803c7c6746aa4a014 Mon Sep 17 00:00:00 2001 From: zxm Date: Tue, 23 Jun 2020 13:26:40 +0800 Subject: [PATCH] [VersionBeta] V.1.0.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Adds] 1.修改登录切换前后台功能bug --- src/views/login.vue | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index f946ec64..1a334640 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -354,7 +354,11 @@ export default { }, loginPage: function() { this.loginShow = 1; - this.isBackground = false; + if(this.isBackground){ + this.isBackground = false; + }else{ + this.isBackground = true; + } }, /** * @description:返回登录 @@ -383,7 +387,6 @@ export default { } }) .then(function(response) { - console.log(response.data); if (response.data.state == 1) { thisApp.$notify({ title: "温馨提示", @@ -418,7 +421,11 @@ export default { */ loginBackManage: function() { this.loginShow = 2; - this.isBackground = true; + if(!this.isBackground){ + this.isBackground = true; + }else{ + this.isBackground = false; + } }, /** * @description: 系统登录 @@ -428,25 +435,11 @@ export default { ToMain: function() { var thisApp = this; if (thisApp.account == "") { - // thisApp.$notify({ - // title: "温馨提示", - // message: "请输入用户名", - // type: "warning", - // offset: 100, - // duration: 2500 - // }); thisApp.errTips = true; thisApp.tipmgs = "请输入用户名!"; return; } if (thisApp.pwd == "") { - // thisApp.$notify({ - // title: "温馨提示", - // message: "请输入密码", - // type: "warning", - // offset: 100, - // duration: 2500 - // }); thisApp.errTips = true; thisApp.tipmgs = "请输入密码!"; return; @@ -524,7 +517,7 @@ export default { thisApp.$router.push({ path: "/system" }); - } else { + } else{ thisApp.$router.push({ path: "/company" }); @@ -538,13 +531,6 @@ export default { duration: 2500 }); } else { - // thisApp.$notify.error({ - // title: "温馨提示5", - // message: response.data.message, - // type: "warning", - // offset: 100, - // duration: 5000 - // }); thisApp.errTips = true; thisApp.tipmgs = response.data.message; }