yujialong 3 months ago
parent 356a052378
commit 7c3fd0cabc
  1. 6
      src/pages/account/login/index.vue
  2. 2
      src/setting.js

@ -12,7 +12,8 @@
<div v-show="!verCodeLogin" class="items">
<el-form-item class="flex-1" prop="account">
<label class="label account"></label>
<el-input v-model.trim="form.account" placeholder="请输入账号" @keyup.enter.native="submit"></el-input>
<el-input v-model.trim="form.account" :placeholder="'请输入账号' + (!form.distinguish ? '/手机号' : '')"
@keyup.enter.native="submit"></el-input>
</el-form-item>
</div>
<template v-if="verCodeLogin">
@ -181,7 +182,7 @@ export default {
handleRule () {
this.rules.account[0].message = this.verCodeLogin ?
'请输入手机号/邮箱' :
'请输入账号'
this.form.distinguish ? '请输入账号' : '请输入账号/手机号'
},
//
typeClick (tab) {
@ -199,6 +200,7 @@ export default {
type: 2,
platform: form.platform
}
if (id) this.verCodeLogin = false
this.$refs.form.clearValidate()
this.handleRule()
},

@ -12,7 +12,7 @@ const dev = process.env.NODE_ENV === 'development' // 本地
let host = `${location.origin}/`
if (dev) {
// host = 'https://www.dataforward.cn/'
// host = 'http://118.31.167.228/'
host = 'http://118.31.167.228/'
host = 'http://192.168.31.217:9000/'
}

Loading…
Cancel
Save