Unverified 提交 d6a91f1f authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

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

refactor: 去除所有前端api自定义超时时间
......@@ -5,7 +5,6 @@ export function queryAuthModel(data, loading = true, timeout = 60000) {
url: 'authModel/queryAuthModel',
method: 'post',
loading: loading,
timeout: timeout,
data
})
}
......@@ -125,7 +125,6 @@ export function post(url, data, showLoading = true, timeout = 60000) {
url: url,
method: 'post',
loading: showLoading,
timeout: timeout,
data
})
}
......
......@@ -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
})
}
......
import request from '@/utils/request'
export function queryAll() {
return request({
url: '/pdf-template/queryAll',
method: 'get',
loading: true,
timeout: 30000
loading: true
})
}
......@@ -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'
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论