恢复登陆需要输入密码;请求超时时间变更为10秒

This commit is contained in:
葛林强 2025-03-11 16:20:22 +08:00
parent 1f8d5086be
commit 49970b5d8d
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ 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'

View File

@ -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)//