Compare commits

...

1 Commits

Author SHA1 Message Date
862d5920b8 release-1.7.01.2 2025-04-18 01:07:01 +07:00
4 changed files with 4 additions and 5 deletions

View File

@ -13973,7 +13973,6 @@
},
"_enabled": true,
"__prefab": null,
"apiUrl": "http://localhost:3030/api/v2/sensors",
"_id": "fd9cjGJCJCmbVairIJtwxV"
},
{

View File

@ -7,8 +7,8 @@ const { ccclass, property } = _decorator;
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;

View File

@ -30,7 +30,7 @@ export class ErrorsStore {
// Асинхронный запрос ошибок с API
async fetchApiErrors(): Promise<void> {
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;

View File

@ -30,7 +30,7 @@ export class SensorDetailStore extends Component {
this.currentSensorName = sensorName;
try {
const response = await fetch("http://localhost:3030/api/v2/sensor-details", {
const response = await fetch("http://192.168.0.219:3030/api/v2/sensor-details", {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ sensorName: sensorName })