feat:更新UI颜色

This commit is contained in:
2025-07-17 23:03:33 +08:00
parent eec0e9f7d3
commit 05fdbf9462
6 changed files with 86 additions and 74 deletions

View File

@@ -10,7 +10,8 @@ class HttpUtil {
factory HttpUtil() => _instance;
late Dio _dio;
String baseUrl = "http://172.29.101.108:8100/";
bool isMock = true;
String baseUrl = "http://192.168.1.3:8100";
// 请求头配置
Map<String, dynamic> headers = {
@@ -80,6 +81,10 @@ class HttpUtil {
T Function(dynamic data)? converter,
}) async {
try {
if (isMock) {
path = path.replaceFirst('/food-service', '');
}
Response response = await _dio.request(
path,
data: data,