Merge pull request #1536 from dataease/pr@dev@refactor_axios_timeout

refactor: 去除所有前端api自定义超时时间
This commit is contained in:
fit2cloud-chenyw 2021-12-28 11:47:37 +08:00 committed by GitHub
commit d6a91f1fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 13 deletions

View File

@ -5,7 +5,6 @@ export function queryAuthModel(data, loading = true, timeout = 60000) {
url: 'authModel/queryAuthModel',
method: 'post',
loading: loading,
timeout: timeout,
data
})
}

View File

@ -125,7 +125,6 @@ export function post(url, data, showLoading = true, timeout = 60000) {
url: url,
method: 'post',
loading: showLoading,
timeout: timeout,
data
})
}

View File

@ -39,7 +39,6 @@ export function defaultTree(data, loading = true, timeout = 60000) {
url: '/panel/group/defaultTree',
method: 'post',
loading: loading,
timeout: timeout,
data
})
}
@ -49,7 +48,6 @@ export function groupTree(data, loading = true, timeout = 60000) {
url: '/panel/group/tree',
method: 'post',
loading: loading,
timeout: timeout,
data
})
}

View File

@ -1,11 +1,9 @@
import request from '@/utils/request'
export function queryAll() {
return request({
url: '/pdf-template/queryAll',
method: 'get',
loading: true,
timeout: 30000
loading: true
})
}

View File

@ -4,7 +4,6 @@ export function validate(data) {
return request({
url: '/system/testConnection',
method: 'post',
timeout: 30000,
loading: true,
data

View File

@ -4,14 +4,12 @@ export function save(data) {
return request({
url: '/template/save',
data: data,
timeout: 60000,
method: 'post'
})
}
export function templateDelete(id) {
return request({
url: '/template/delete/' + id,
timeout: 60000,
method: 'delete'
})
}
@ -19,7 +17,6 @@ export function templateDelete(id) {
export function showTemplateList(data) {
return request({
url: '/template/templateList',
timeout: 60000,
data: data,
method: 'post'
})
@ -28,7 +25,6 @@ export function showTemplateList(data) {
export function findOne(id) {
return request({
url: '/template/findOne/' + id,
timeout: 60000,
method: 'get'
})
}
@ -36,7 +32,6 @@ export function findOne(id) {
export function find(data) {
return request({
url: '/template/find',
timeout: 60000,
data: data,
method: 'post'
})