20 lines
593 B
TypeScript
20 lines
593 B
TypeScript
import { useDamageReportStore } from "@/stores/admin/unit/damageReport/damageReport";
|
|
|
|
export async function setDamageReportId(to: any, from: any, next: any) {
|
|
const damageReportStore = useDamageReportStore();
|
|
damageReportStore.activeDamageReport = to.params?.damageReportId ?? null;
|
|
|
|
//xystore().$reset();
|
|
|
|
next();
|
|
}
|
|
|
|
export async function resetDamageReportStores(to: any, from: any, next: any) {
|
|
const damageReportStore = useDamageReportStore();
|
|
damageReportStore.activeDamageReport = null;
|
|
damageReportStore.activeDamageReportObj = null;
|
|
|
|
//xystore().$reset();
|
|
|
|
next();
|
|
}
|