diff --git a/frontend/.env.production b/frontend/.env.production index a8b89254..7578e882 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,2 +1,2 @@ NODE_ENV='production' -VUE_APP_BASE_URL=http://crawlab.cn:8000/api +VUE_APP_BASE_URL='http://crawlab.cn:8000/api' diff --git a/frontend/src/api/request.js b/frontend/src/api/request.js index 4aaa0c04..1bc4d57e 100644 --- a/frontend/src/api/request.js +++ b/frontend/src/api/request.js @@ -1,6 +1,6 @@ import axios from 'axios' -let baseUrl = process.env.VUE_APP_API_BASE_URL ? process.env.VUE_APP_API_BASE_URL : 'http://localhost:8000/api' +let baseUrl = process.env.VUE_APP_BASE_URL ? process.env.VUE_APP_BASE_URL : 'http://localhost:8000/api' // console.log(process.env) // const baseUrl = process.env.API_BASE_URL || 'http://localhost:8000/api'