20 lines
490 B
TypeScript
20 lines
490 B
TypeScript
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();
|
|
}
|