fixed dev/production env issue

This commit is contained in:
Marvin Zhang
2019-03-13 12:45:13 +08:00
parent bbd52b3e3b
commit 5e8ee66f70

View File

@@ -1,6 +1,6 @@
import axios from 'axios'
let baseUrl = 'http://localhost:8000'
let baseUrl = 'http://localhost:8000/api'
if (process.env.NODE_ENV === 'production') {
baseUrl = 'http://139.129.230.98:8000/api'
}