From 5ac6f1a08bc735cca2c3e18b62945da3eae86ca0 Mon Sep 17 00:00:00 2001
From: yinzuomei <57602893@qq.com>
Date: Fri, 20 Mar 2020 10:52:10 +0800
Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=AA=8C=E8=AF=81=E7=A0=81?=
=?UTF-8?q?=E3=80=81=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?=
=?UTF-8?q?=E5=8F=98=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
epmet-oper-web/src/views/pages/login.vue | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
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)