feat: Select article list in sight
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { API_URL, authInstance } from "@shared";
|
||||
import { makeAutoObservable } from "mobx";
|
||||
import { makeAutoObservable, runInAction } from "mobx";
|
||||
|
||||
class DevicesStore {
|
||||
devices: string[] = [];
|
||||
@ -12,7 +12,9 @@ class DevicesStore {
|
||||
|
||||
getDevices = async () => {
|
||||
const response = await authInstance.get(`${API_URL}/devices/connected`);
|
||||
this.devices = response.data;
|
||||
runInAction(() => {
|
||||
this.devices = response.data;
|
||||
});
|
||||
};
|
||||
|
||||
setSelectedDevice = (uuid: string) => {
|
||||
|
Reference in New Issue
Block a user