feat: update demo page + add city_id for media and articles

This commit is contained in:
2026-04-28 10:57:42 +03:00
parent 60c6840db4
commit 94f512e0e4
27 changed files with 499 additions and 222 deletions

View File

@@ -53,7 +53,7 @@ class RouteStore {
});
};
createRoute = async (route: any) => {
createRoute = async (route: any): Promise<number> => {
const response = await authInstance.post("/route", route);
const id = response.data.id;
@@ -61,6 +61,8 @@ class RouteStore {
this.route[id] = { ...route, id };
this.routes.data = [...this.routes.data, { ...route, id }];
});
return id;
};
deleteRoute = async (id: number) => {