Browse Source

edit api

master
chutingting 1 year ago
parent
commit
88fcd6f488
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/api/common.js

+ 3
- 3
src/api/common.js View File

@@ -8,7 +8,7 @@ export function upload(data) {
url: '/upload/awsImgUpload',
method: 'post',
data: formData,
timeout: 1000 * 60 * 2, // 超时时间两分钟
// timeout: 1000 * 60 * 2, // 超时时间两分钟
params: {
width: data.width === 'auto' ? undefined : data.width || 200,
hight: data.height === 'auto' ? undefined : data.height || 200
@@ -23,8 +23,8 @@ export function videoUpload(data) {
return request({
url: '/video/upload',
method: 'post',
data: formData,
timeout: 1000 * 60 * 2 // 超时时间两分钟
data: formData
// timeout: 1000 * 60 * 2 // 超时时间两分钟
})
}



Loading…
Cancel
Save