ff-admin/src/router/unit/respiratoryGear.ts

21 lines
647 B
TypeScript
Raw Normal View History

2025-03-26 16:56:07 +01:00
import { useRespiratoryGearStore } from "@/stores/admin/unit/respiratoryGear/respiratoryGear";
export async function setRespiratoryGearId(to: any, from: any, next: any) {
2025-07-11 09:42:07 +02:00
const respiratoryGearStore = useRespiratoryGearStore();
respiratoryGearStore.activeRespiratoryGear = to.params?.respiratoryGearId ?? null;
2025-03-26 16:56:07 +01:00
//useXYStore().$reset();
next();
}
export async function resetRespiratoryGearStores(to: any, from: any, next: any) {
2025-07-11 09:42:07 +02:00
const respiratoryGearStore = useRespiratoryGearStore();
respiratoryGearStore.activeRespiratoryGear = null;
respiratoryGearStore.activeRespiratoryGearObj = null;
2025-03-26 16:56:07 +01:00
//useXYStore().$reset();
next();
}