refactor:修改整体查询超时时间为20s,增加部分api超时时间

This commit is contained in:
wangjiahao 2021-08-02 10:48:44 +08:00
parent c94ec45503
commit a376245400
3 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@ export function ajaxGetData(id, data) {
export function getChartTree(data) {
return request({
url: 'api',
timeout: 30000,
method: 'post',
loading: true,
data

View File

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

View File

@ -16,7 +16,7 @@ const LinkTokenKey = Config.LinkTokenKey
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 10000 // request timeout
timeout: 20000 // request timeout
})
// request interceptor