feat:更新UI颜色
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user