From 854a6f805f351d6fb8511ea07bf898683b5ded3f Mon Sep 17 00:00:00 2001 From: 若依 <yzz_ivy@163.com> Date: 星期一, 21 十二月 2020 10:13:47 +0800 Subject: [PATCH] !145 redis 增加 database配置项,设置不同的库 Merge pull request !145 from li_oxen/N/A --- ruoyi-ui/src/views/login.vue | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 574ca0b..6b2139e 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -126,15 +126,12 @@ Cookies.remove("password"); Cookies.remove('rememberMe'); } - this.$store - .dispatch("Login", this.loginForm) - .then(() => { - this.$router.push({ path: this.redirect || "/" }); - }) - .catch(() => { - this.loading = false; - this.getCode(); - }); + this.$store.dispatch("Login", this.loginForm).then(() => { + this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); + }).catch(() => { + this.loading = false; + this.getCode(); + }); } }); } -- Gitblit v1.9.2