From 037d9ec4319b2c56a16e790506abfa6ad6f4308c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Mon, 25 Sep 2023 15:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 97dd456c..2d280b99 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -149,7 +149,9 @@ export default { code:null, isSmsLogin: false, //是否手机验证码 computeTime: 0, - height:0 + height:0, + uuid:'', + uuidPhone:'', }; }, created() { @@ -171,13 +173,13 @@ export default { methods: { getCode() { getCodeImg().then((res) => { - this.formData.uuid = res.uuid; + this.uuid = res.uuid; this.codeUrl = "data:image/gif;base64," + res.img; }); }, getCodePhone() { getCodeImg().then((res) => { - this.formData.uuid = res.uuid; + this.uuidPhone = res.uuid; this.codeUrlPhone = "data:image/gif;base64," + res.img; }); }, @@ -242,6 +244,7 @@ export default { } this.loading = true; this.formData.code = this.mobileCode; + this.formData.uuid = this.uuidPhone this.$store .dispatch("SmsLogin", this.formData) .then(() => { @@ -278,6 +281,7 @@ export default { return false; } this.formData.code = this.code; + this.formData.uuid = this.uuid; this.$store .dispatch("Login", this.formData) .then(() => {