Refactor axios & Owner page

This commit is contained in:
saplf
2018-10-23 12:49:49 +08:00
parent 6a2eaaa175
commit 673e4a11b7
4 changed files with 29 additions and 23 deletions

4
src/services/axios.js Normal file
View File

@@ -0,0 +1,4 @@
import axios from 'axios'
import app from './app'
axios.defaults.baseURL = app.dev ? 'http://localhost:6842/' : 'http://test-sg.bittic.net:6842/'