diff --git a/src/utils/request.js b/src/utils/request.js index 4b3dd45ce15b821b6f5604e9c4cca5f446befb24..c61c35d1c78b3be72d261db22bae02fff291475d 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -5,7 +5,7 @@ import { getToken } from '@/utils/auth' // create an axios instance const service = axios.create({ - baseUrl: process.env.VUE_APP_BASE_API, // url = base url + request url + baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url // withCredentials: true, // send cookies when cross-domain requests timeout: 10000 // request timeout })