diff --git a/epmet-oper-web/src/views/pages/login.vue b/epmet-oper-web/src/views/pages/login.vue index 8e32306..5c93ac9 100644 --- a/epmet-oper-web/src/views/pages/login.vue +++ b/epmet-oper-web/src/views/pages/login.vue @@ -13,8 +13,8 @@ - - + + @@ -69,7 +69,10 @@ export default { i18nMessages: messages, captchaPath: '', dataForm: { + app: 'oper', + client: 'web', username: '', + phone: '', password: '', uuid: '', captcha: '' @@ -79,7 +82,7 @@ export default { computed: { dataRule () { return { - username: [ + phone: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } ], password: [ @@ -98,7 +101,7 @@ export default { // 获取验证码 getCaptcha () { this.dataForm.uuid = getUUID() - this.captchaPath = `${window.SITE_CONFIG['apiURL']}/auth/captcha?uuid=${this.dataForm.uuid}` + this.captchaPath = `${window.SITE_CONFIG['apiURL']}/auth/login/captcha?uuid=${this.dataForm.uuid}` }, // 表单提交 dataFormSubmitHandle: debounce(function () { @@ -106,7 +109,7 @@ export default { if (!valid) { return false } - this.$http.post('/auth/login', this.dataForm).then(({ data: res }) => { + this.$http.post('/auth/login/loginbypassword', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { this.getCaptcha() return this.$message.error(res.msg)