1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
| /**
| * @description: 可修改api,如果为空则是默认api
| */
| const baseUrl = {
| // 基础请求接口
| apiBaseUrl: '',
| // websocket请求接口
| wsBaseUrl: '',
| // MediaPanel请求接口
| mediaPanelPrefix: ''
| }
| /**
| * @description: 可修改mqtt配置,如果为空则是默认配置
| */
| const mqttConfig = {
| clientId: '',
| username: '',
| password: '',
| host: '',
| protocol: '',
| port: ''
| }
|
| window.globalApiConfig = {
| baseUrl,
| mqttConfig
| }
|
|