perf: 修改文件上传超时时间

This commit is contained in:
wangruidong
2023-12-19 17:39:46 +08:00
committed by Bryan
parent 7eac62635b
commit 9f4c798ddb
2 changed files with 4 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ export function JobUploadFile(form) {
url: '/api/v1/ops/jobs/upload/',
method: 'post',
headers: { 'Content-Type': 'multipart/form-data' },
timeout: 10 * 60 * 1000,
data: form
})
}

View File

@@ -90,6 +90,7 @@ export default {
form,
{
headers: { 'Content-Type': 'multipart/form-data' },
timeout: 10 * 60 * 1000,
disableFlashErrorMsg: true,
params: { update: true }
}
@@ -117,8 +118,9 @@ export default {
.file-uploader.el-form-item {
margin-bottom: 0;
>>> .el-upload {
> > > .el-upload {
width: 100%;
.el-upload-dragger {
width: 100%;
}