заменил адреса бэка на локальную виртуалку http://192.168.0.219:3030
This commit is contained in:
parent
6ee71adb4c
commit
ced43f914e
@ -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;
|
||||
|
||||
@ -36,7 +36,7 @@ export class ErrorsStore {
|
||||
*/
|
||||
public 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) {
|
||||
console.error("ErrorsStore: ошибка при получении ошибок, статус:", response.status);
|
||||
return;
|
||||
|
||||
@ -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 })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user