@@ -4,7 +4,10 @@
*/
import ajax from './ajax'
-const BASE_URL = 'http://112.74.78.188:8080'
+import state from '../store/state'
+
+const {systemJson} = state
+const BASE_URL = `${systemJson.ServerIP}:${systemJson.ServerPort}`
// 登录
export const reqLogin = (data) => ajax(BASE_URL+'/login',data,'POST')
@@ -12,6 +12,7 @@ import bigScreenJson from '../../../static/EnityBigScreen'
import signalListJson from '../../../static/EnitySignalPreviewList'
import imageJson from '../../../static/EnityImage'
import sliderJson from '../../../static/EnitySlider'
+import systemJson from '../../../static/EnitySystem'
export default {
// 用户信息
@@ -45,5 +46,8 @@ export default {
imageJson,
// 滑块组件
- sliderJson
+ sliderJson,
+ // ip 端口
+ systemJson
}
@@ -1,6 +1,6 @@
{
- "ServerIP":"192.168.1.111",
- "ServerPort":2020,
+ "ServerIP":"http://112.74.78.188",
+ "ServerPort":8080,
"Users":[
]