feat: Select article list in sight

This commit is contained in:
2025-05-31 06:35:05 +03:00
parent 5ef61bcef4
commit 2e6917406e
21 changed files with 899 additions and 498 deletions

View File

@ -1,5 +1,5 @@
import { authInstance } from "@shared";
import { makeAutoObservable } from "mobx";
import { makeAutoObservable, runInAction } from "mobx";
type City = {
id: number;
@ -18,7 +18,9 @@ class CityStore {
getCities = async () => {
const response = await authInstance.get("/city");
this.cities = response.data;
runInAction(() => {
this.cities = response.data;
});
};
}