1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-01 13:33:58 +08:00

Merge pull request #3 from nowcastsystem/weijian

update request timeout
This commit is contained in:
nowcastsystem 2019-09-18 13:46:46 -05:00 committed by GitHub
commit d3a180ea0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth'
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: 5000 // request timeout
timeout: 500000 // request timeout
})
// request interceptor