From efac99d5f81686119b8be8a8001d07a631103699 Mon Sep 17 00:00:00 2001 From: oddfar Date: Sun, 6 Aug 2023 23:29:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9AdeviceId=E7=9A=84=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue_campus_admin/src/views/imt/user/index.vue | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/vue_campus_admin/src/views/imt/user/index.vue b/vue_campus_admin/src/views/imt/user/index.vue index 2cab948..2f740f2 100644 --- a/vue_campus_admin/src/views/imt/user/index.vue +++ b/vue_campus_admin/src/views/imt/user/index.vue @@ -457,7 +457,7 @@ type="primary" @click="sendCode(form.mobile)" :disabled="state" - >发送验证码({{ stateNum }}) + >发送验证码({{ stateNum }}) @@ -487,22 +487,21 @@ type="primary" @click="sendCode(form.mobile, form.deviceId)" :disabled="state" - >发送验证码({{ stateNum }}) + >发送验证码({{ stateNum }}) - + @@ -603,7 +602,6 @@ export default { listItem().then((response) => { this.itemList = response.data; }); - console.log(this.guid()); }, methods: { //item下拉框选择 @@ -756,7 +754,11 @@ export default { }, //发生验证码 sendCode(mobile, deviceId) { - this.form.deviceId = deviceId == "" ? this.guid() : deviceId; + if (deviceId == undefined || deviceId == "") { + this.form.deviceId = this.guid(); + } else { + this.form.deviceId = deviceId; + } sendCode(mobile, this.form.deviceId).then((response) => { this.$modal.msgSuccess("发送成功"); this.state = true; @@ -771,7 +773,7 @@ export default { }, //登录 login(mobile, code) { - this.refresh(mobile, code, this.form.deviceId, 0) + this.refresh(mobile, code, this.form.deviceId, 0); }, /** 删除按钮操作 */ handleDelete(row) {