mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
refactor: 去除所有前端api自定义超时时间
This commit is contained in:
@@ -4,7 +4,6 @@ export function validate(data) {
|
||||
return request({
|
||||
url: '/system/testConnection',
|
||||
method: 'post',
|
||||
timeout: 30000,
|
||||
loading: true,
|
||||
data
|
||||
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user