fixed dev/production env issue

This commit is contained in:
Marvin Zhang
2019-03-13 12:45:13 +08:00
parent 8214d8ff50
commit 9f38119a9d

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'
}