mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 21:48:13 +00:00
feat: loading timetable from url params
This commit is contained in:
@@ -41,7 +41,8 @@ export const useApiStore = defineStore('api', {
|
||||
});
|
||||
|
||||
this.fetchSceneriesData();
|
||||
this.fetchActiveData();
|
||||
await this.fetchActiveData();
|
||||
|
||||
|
||||
setInterval(() => {
|
||||
this.fetchActiveData();
|
||||
|
||||
@@ -8,6 +8,7 @@ export const useGlobalStore = defineStore('global', {
|
||||
darkMode: false,
|
||||
viewMode: 'active' as ViewMode,
|
||||
|
||||
selectedTrainId: null as string | null,
|
||||
selectedActiveTrain: null as ActiveTrain | null,
|
||||
selectedStorageTimetable: null as TimetableData | null,
|
||||
storageTimetables: {} as Record<number, TimetableData>,
|
||||
|
||||
Reference in New Issue
Block a user