Commit 2f3d7fed authored by 沈翠玲's avatar 沈翠玲

超时时间调整

parent 94326ca6
...@@ -10,7 +10,7 @@ import { saveAs } from 'file-saver'; ...@@ -10,7 +10,7 @@ import { saveAs } from 'file-saver';
const envs = getAppEnvConfig(); const envs = getAppEnvConfig();
const defaultConfig = { const defaultConfig = {
baseURL: envs.VITE_GLOB_API_URL_PREFIX, baseURL: envs.VITE_GLOB_API_URL_PREFIX,
timeout: 180000, timeout: 600000,
// 数组格式参数序列化(https://github.com/axios/axios/issues/5142) // 数组格式参数序列化(https://github.com/axios/axios/issues/5142)
paramsSerializer: { paramsSerializer: {
serialize: stringify, serialize: stringify,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div> <div>
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
:headers="{ timeout: 360000 }" :headers="{ timeout: 600000 }"
ref="uploadRef" ref="uploadRef"
:action="upload.url" :action="upload.url"
:disabled="upload.isUploading" :disabled="upload.isUploading"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment