base views and store
This commit is contained in:
parent
b9b0381356
commit
b56347c172
29 changed files with 655 additions and 22 deletions
20
src/router/unit/repair.ts
Normal file
20
src/router/unit/repair.ts
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue