added analytics for spider

This commit is contained in:
Marvin Zhang
2019-04-28 13:17:40 +08:00
parent 7b61a20324
commit a9f59dc110
10 changed files with 304 additions and 137 deletions

View File

@@ -4,6 +4,7 @@ let baseUrl = 'http://localhost:8000/api'
if (process.env.NODE_ENV === 'production') {
baseUrl = 'http://139.129.230.98:8000/api'
}
// console.log(process.env)
// const baseUrl = process.env.API_BASE_URL || 'http://localhost:8000/api'
const request = (method, path, params, data) => {