alroyso 1 rok temu
rodzic
commit
beb6ea2645
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lib/app/controller/core.dart

+ 2 - 2
lib/app/controller/core.dart

@@ -88,8 +88,8 @@ class CoreController extends GetxController {
   }
 
   Future<void> changeConfig(String configPath) async{
-    await dio.put('/configs', queryParameters: {"force": false}, data: {"path": config});
-}
+    await dio.put('/configs', data: {"path": configPath});
+  }
 
   // type updateConfigRequest struct {
   // 	Path    string `json:"path"`