20 lines
631 B
TypeScript
20 lines
631 B
TypeScript
import { useInspectionPlanStore } from "@/stores/admin/unit/inspectionPlan/inspectionPlan";
|
|
|
|
export async function setInspectionPlanId(to: any, from: any, next: any) {
|
|
const InspectionPlanStore = useInspectionPlanStore();
|
|
InspectionPlanStore.activeInspectionPlan = to.params?.inspectionPlanId ?? null;
|
|
|
|
//useXYStore().$reset();
|
|
|
|
next();
|
|
}
|
|
|
|
export async function resetInspectionPlanStores(to: any, from: any, next: any) {
|
|
const InspectionPlanStore = useInspectionPlanStore();
|
|
InspectionPlanStore.activeInspectionPlan = null;
|
|
InspectionPlanStore.activeInspectionPlanObj = null;
|
|
|
|
//useXYStore().$reset();
|
|
|
|
next();
|
|
}
|