base views and store

This commit is contained in:
Julian Krauser 2025-07-19 11:02:03 +02:00
parent b9b0381356
commit b56347c172
29 changed files with 655 additions and 22 deletions

20
src/router/unit/repair.ts Normal file
View file

@ -0,0 +1,20 @@
import { useRepairStore } from "@/stores/admin/unit/repair";
export async function setRepairId(to: any, from: any, next: any) {
const repairStore = useRepairStore();
repairStore.activeRepair = to.params?.repairId ?? null;
//xystore().$reset();
next();
}
export async function resetRepairStores(to: any, from: any, next: any) {
const repairStore = useRepairStore();
repairStore.activeRepair = null;
repairStore.activeRepairObj = null;
//xystore().$reset();
next();
}