From 0d8755cb1eac783064a820f2dbf8925ed2df9a83 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Fri, 6 Aug 2021 15:07:50 +0800 Subject: [PATCH] daorujianzhun --- client/.env.development | 4 ++-- client/src/utils/request.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/.env.development b/client/.env.development index c5200d4..db28ec5 100644 --- a/client/.env.development +++ b/client/.env.development @@ -3,10 +3,10 @@ ENV = 'development' # base api #VUE_APP_BASE_API = 'http://10.0.11.127:8000/api' -VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' +#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' #VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api' -#VUE_APP_BASE_API = 'http://47.95.0.242:9101/api' +VUE_APP_BASE_API = 'http://47.95.0.242:9101/api' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/client/src/utils/request.js b/client/src/utils/request.js index 9c15d5b..06d8b18 100644 --- a/client/src/utils/request.js +++ b/client/src/utils/request.js @@ -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: 300000 // request timeout + timeout: 600000 // request timeout }) // request interceptor