From 1c3b7388c5b38e265517b0f7495a9c3ec69770e7 Mon Sep 17 00:00:00 2001 From: Georgy Shive Date: Tue, 18 Mar 2025 19:55:40 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=8B=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=83=D0=B1=D0=BB=D0=B8=D0=BA=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BD=D0=B0=20=D0=B2=D0=B8=D1=80=D1=82=D1=83=D0=B0?= =?UTF-8?q?=D0=BB=D0=BA=D0=B5=20192.168.0.219?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scenes/scene.scene | 2 +- assets/Scripts/stores/EquipmentManager.ts | 2 +- assets/Scripts/stores/ErrorsStore.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/Scenes/scene.scene b/assets/Scenes/scene.scene index fff0a83..3562dd2 100644 --- a/assets/Scenes/scene.scene +++ b/assets/Scenes/scene.scene @@ -12783,7 +12783,7 @@ }, "_enabled": true, "__prefab": null, - "apiUrl": "http://localhost:3030/api/v2/sensors", + "apiUrl": "http://192.168.0.219:3030/api/v2/sensors", "_id": "fd9cjGJCJCmbVairIJtwxV" }, { diff --git a/assets/Scripts/stores/EquipmentManager.ts b/assets/Scripts/stores/EquipmentManager.ts index 210d24b..3111ee1 100644 --- a/assets/Scripts/stores/EquipmentManager.ts +++ b/assets/Scripts/stores/EquipmentManager.ts @@ -8,7 +8,7 @@ export class EquipmentManager extends Component { public static instance: EquipmentManager; @property - public apiUrl: string = 'http://localhost:3030/api/v2/sensors'; + public apiUrl: string = 'http://192.168.0.219:3030/api/v2/sensors'; private _dataList: apiSensors[] = []; public totalCount: number = 0; diff --git a/assets/Scripts/stores/ErrorsStore.ts b/assets/Scripts/stores/ErrorsStore.ts index 290b1b9..35c0d2e 100644 --- a/assets/Scripts/stores/ErrorsStore.ts +++ b/assets/Scripts/stores/ErrorsStore.ts @@ -30,7 +30,7 @@ export class ErrorsStore { // Асинхронный запрос ошибок с API async fetchApiErrors(): Promise { try { - const response = await fetch("http://localhost:3030/api/v2/errors"); + const response = await fetch("http://192.168.0.219:3030/api/v2/errors"); if (response.ok) { const errors = await response.json() as ApiErrorsResponse; this.apiErrors = errors;