diff --git a/vue_campus_admin/src/views/imt/user/index.vue b/vue_campus_admin/src/views/imt/user/index.vue index 2cab9488..2f740f2c 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) {