From 46cde428816454eb0fcfad7fa37e4f07e060133d Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 30 May 2019 21:30:04 +0800 Subject: [PATCH] fixed localhost issue --- frontend/.env.production | 2 +- frontend/src/api/request.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'