From 0bca71135050aee417e23811022af245ed2fd10e Mon Sep 17 00:00:00 2001 From: JaneYork Date: Mon, 16 May 2022 14:53:01 +0800 Subject: [PATCH] =?UTF-8?q?vue2=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=85=B3=E9=97=AD=EF=BC=8C=E8=BF=94=E5=9B=9E=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E3=80=82ajCancel=E3=80=82?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E5=A4=84=E7=90=86=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E6=AF=94=E5=A6=82=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E5=88=99=E5=85=B3=E9=97=ADloading?= =?UTF-8?q?=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/vue/src/components/verifition/Verify.vue | 1 + view/vue/src/views/Login.vue | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/view/vue/src/components/verifition/Verify.vue b/view/vue/src/components/verifition/Verify.vue index f38724e..d56dfd0 100644 --- a/view/vue/src/components/verifition/Verify.vue +++ b/view/vue/src/components/verifition/Verify.vue @@ -188,6 +188,7 @@ export default { closeBox() { this.clickShow = false this.refresh() + this.$emit('ajCancel', this) }, show() { if (this.mode == 'pop') { diff --git a/view/vue/src/views/Login.vue b/view/vue/src/views/Login.vue index 02c8fad..8128dbc 100644 --- a/view/vue/src/views/Login.vue +++ b/view/vue/src/views/Login.vue @@ -13,6 +13,7 @@ :captcha-type="'blockPuzzle'" :img-size="{width:'400px',height:'200px'}" @success="login" + @ajCancel="captchaCheckCancel" />
@@ -127,7 +128,10 @@ export default { goRegister() { this.$router.push('/register') }, - + captchaCheckCancel(params) { + // 点击关闭,可以自行处理逻辑,比如关闭loading + // this.logining = false + }, checkPrama() { if (!this.loginName || !this.loginPassword) { this.$message({ -- Gitee