From 7941623b1fb108a154ea4270d7c7e2df6031f6e5 Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期四, 11 十二月 2025 12:36:14 +0800
Subject: [PATCH] 优化页面UI更新
---
common/api.js | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/common/api.js b/common/api.js
index 532c357..6e13ab0 100644
--- a/common/api.js
+++ b/common/api.js
@@ -1,16 +1,20 @@
import {
fly
-} from '@/common/request/fly.js'
+} from '@/common/request/fly.js'
+// const base = "http://192.168.21.3:9999"
+const base = "http://lanpucloud.cn"
+
//閰嶇疆璇锋眰鍩哄湴鍧�
-fly.config.baseURL = "http://192.168.12.47:9999"
+fly.config.baseURL = base + "/herb"
+// fly.config.baseURL = base + ""
const ip = uni.getStorageSync('lan_ip');
if (ip) {
fly.config.baseURL = "http://" + ip + ":9999"
}
-const mqttBaseUrl = "192.168.2.3";
-const emqxBaseUrl = "http://" + mqttBaseUrl + ":18083/api/v5"
-
+const mqttBaseUrl = "lanpucloud.cn";
+const emqxBaseUrl = base + ":1883/api/v5";
+
// 娴嬭瘯
function test(params) {
return fly.get('/test/jeecgDemo/queryById', params);
--
Gitblit v1.9.3