| | |
| | | import {
|
| | | fly
|
| | | } from '@/common/request/fly.js'
|
| | | } from '@/common/request/fly.js' |
| | | const base = "http://192.168.21.3:9999" |
| | | // const base = "https://lanpucloud.cn" |
| | |
|
| | | //配置请求基地址
|
| | | fly.config.baseURL = "http://lanpucloud.cn/herb"
|
| | | fly.config.baseURL = base + ""
|
| | | const ip = uni.getStorageSync('lan_ip');
|
| | | if (ip) {
|
| | | fly.config.baseURL = "http://" + ip + ":9999"
|
| | | }
|
| | |
|
| | | const mqttBaseUrl = "lanpucloud.cn";
|
| | | const emqxBaseUrl = "http://" + mqttBaseUrl + ":1883/api/v5"
|
| | |
|
| | | const emqxBaseUrl = base + ":1883/api/v5"; |
| | | |
| | | // 测试
|
| | | function test(params) {
|
| | | return fly.get('/test/jeecgDemo/queryById', params);
|