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) { ...@@ -5,7 +5,6 @@ export function queryAuthModel(data, loading = true, timeout = 60000) {
url: 'authModel/queryAuthModel', url: 'authModel/queryAuthModel',
method: 'post', method: 'post',
loading: loading, loading: loading,
timeout: timeout,
data data
}) })
} }
...@@ -125,7 +125,6 @@ export function post(url, data, showLoading = true, timeout = 60000) { ...@@ -125,7 +125,6 @@ export function post(url, data, showLoading = true, timeout = 60000) {
url: url, url: url,
method: 'post', method: 'post',
loading: showLoading, loading: showLoading,
timeout: timeout,
data data
}) })
} }
......
...@@ -39,7 +39,6 @@ export function defaultTree(data, loading = true, timeout = 60000) { ...@@ -39,7 +39,6 @@ export function defaultTree(data, loading = true, timeout = 60000) {
url: '/panel/group/defaultTree', url: '/panel/group/defaultTree',
method: 'post', method: 'post',
loading: loading, loading: loading,
timeout: timeout,
data data
}) })
} }
...@@ -49,7 +48,6 @@ export function groupTree(data, loading = true, timeout = 60000) { ...@@ -49,7 +48,6 @@ export function groupTree(data, loading = true, timeout = 60000) {
url: '/panel/group/tree', url: '/panel/group/tree',
method: 'post', method: 'post',
loading: loading, loading: loading,
timeout: timeout,
data data
}) })
} }
......
import request from '@/utils/request' import request from '@/utils/request'
export function queryAll() { export function queryAll() {
return request({ return request({
url: '/pdf-template/queryAll', url: '/pdf-template/queryAll',
method: 'get', method: 'get',
loading: true, loading: true
timeout: 30000
}) })
} }
...@@ -4,7 +4,6 @@ export function validate(data) { ...@@ -4,7 +4,6 @@ export function validate(data) {
return request({ return request({
url: '/system/testConnection', url: '/system/testConnection',
method: 'post', method: 'post',
timeout: 30000,
loading: true, loading: true,
data data
......
...@@ -4,14 +4,12 @@ export function save(data) { ...@@ -4,14 +4,12 @@ export function save(data) {
return request({ return request({
url: '/template/save', url: '/template/save',
data: data, data: data,
timeout: 60000,
method: 'post' method: 'post'
}) })
} }
export function templateDelete(id) { export function templateDelete(id) {
return request({ return request({
url: '/template/delete/' + id, url: '/template/delete/' + id,
timeout: 60000,
method: 'delete' method: 'delete'
}) })
} }
...@@ -19,7 +17,6 @@ export function templateDelete(id) { ...@@ -19,7 +17,6 @@ export function templateDelete(id) {
export function showTemplateList(data) { export function showTemplateList(data) {
return request({ return request({
url: '/template/templateList', url: '/template/templateList',
timeout: 60000,
data: data, data: data,
method: 'post' method: 'post'
}) })
...@@ -28,7 +25,6 @@ export function showTemplateList(data) { ...@@ -28,7 +25,6 @@ export function showTemplateList(data) {
export function findOne(id) { export function findOne(id) {
return request({ return request({
url: '/template/findOne/' + id, url: '/template/findOne/' + id,
timeout: 60000,
method: 'get' method: 'get'
}) })
} }
...@@ -36,7 +32,6 @@ export function findOne(id) { ...@@ -36,7 +32,6 @@ export function findOne(id) {
export function find(data) { export function find(data) {
return request({ return request({
url: '/template/find', url: '/template/find',
timeout: 60000,
data: data, data: data,
method: 'post' method: 'post'
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论