恢复登陆需要输入密码;请求超时时间变更为10秒
This commit is contained in:
parent
1f8d5086be
commit
49970b5d8d
|
|
@ -2,11 +2,11 @@ import axios from 'axios'
|
||||||
|
|
||||||
const request = axios.create({
|
const request = axios.create({
|
||||||
baseURL: 'https://csclasrs.ecorp.cat.com/wmsServer/wms',
|
baseURL: 'https://csclasrs.ecorp.cat.com/wmsServer/wms',
|
||||||
timeout: 5000
|
timeout: 10000
|
||||||
})
|
})
|
||||||
|
|
||||||
// axios.defaults.baseURL = 'http://10.90.36.70:443/wmsServer/wms'
|
// axios.defaults.baseURL = 'http://10.90.36.70:443/wmsServer/wms'
|
||||||
// axios.defaults.baseURL = 'http://localhost:12315/wms'
|
//axios.defaults.baseURL = 'http://localhost:12315/wms'
|
||||||
// axios.defaults.baseURL = 'https://csclasrs.ecorp.cat.com/wmsServer/wms'
|
// axios.defaults.baseURL = 'https://csclasrs.ecorp.cat.com/wmsServer/wms'
|
||||||
|
|
||||||
// // request 请求器
|
// // request 请求器
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input type="text" v-model="loginForm.loginAccount" auto-complete="off" placeholder="账号"></el-input>
|
<el-input type="text" v-model="loginForm.loginAccount" auto-complete="off" placeholder="账号"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item>
|
<el-form-item>
|
||||||
<el-input type="password" v-model="loginForm.loginPassword" auto-complete="off" placeholder="密码"></el-input>
|
<el-input type="password" v-model="loginForm.loginPassword" auto-complete="off" placeholder="密码"></el-input>
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
<el-form-item style="width: 100%">
|
<el-form-item style="width: 100%">
|
||||||
<el-button type="primary" style="width: 100%; border: none" @click="login">登录</el-button>
|
<el-button type="primary" style="width: 100%; border: none" @click="login">登录</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -70,7 +70,7 @@ const login = () => {
|
||||||
text: 'Loading',
|
text: 'Loading',
|
||||||
background: 'rgba(0, 0, 0, 0.7)',
|
background: 'rgba(0, 0, 0, 0.7)',
|
||||||
})
|
})
|
||||||
loginWithoutAuth(loginForm).then(res => {
|
loginWithAuth(loginForm).then(res => {
|
||||||
loading.close()
|
loading.close()
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
store.commit('mutationUser', res.data.returnData.user)// 用户信息
|
store.commit('mutationUser', res.data.returnData.user)// 用户信息
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user