From 23dfce7e250f8cd297c9079aa5774304872d2275 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Thu, 20 Aug 2020 10:23:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=88=9D=E6=AC=A1?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=B3=BB=E7=BB=9F=E5=90=8E=E5=9B=9E=E8=BD=A6?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/login.vue b/nezha-fronted/src/components/common/login.vue index db32f9f02..a50127283 100644 --- a/nezha-fronted/src/components/common/login.vue +++ b/nezha-fronted/src/components/common/login.vue @@ -46,7 +46,7 @@ export default { }, methods: { login() { - if (this.validateLogin()) { + if (this.validateLogin()&&(this.$route.path=='/'||this.$route.path=='/login')) { this.$post('sys/login', (this.loginData)).then(res => { if (res.code == 200) { //登录成功,记录用户名、token和lang