refactor:延长模板相关api超时时间

This commit is contained in:
wangjiahao 2021-07-30 13:52:24 +08:00
parent 4dcfcf604e
commit e534b31f8e

View File

@ -4,12 +4,14 @@ 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'
}) })
} }
@ -17,6 +19,7 @@ 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'
}) })
@ -25,6 +28,7 @@ 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'
}) })
} }
@ -32,6 +36,7 @@ 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'
}) })