demo data
This commit is contained in:
parent
5faa4b7906
commit
36ca3d90a7
29 changed files with 304 additions and 99 deletions
19
src/router/management/backupGuard.ts
Normal file
19
src/router/management/backupGuard.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { useBackupStore } from "@/stores/admin/management/backup";
|
||||
|
||||
export async function setBackupPage(to: any, from: any, next: any) {
|
||||
const backup = useBackupStore();
|
||||
|
||||
let uploadPage = to.name.includes("uploaded");
|
||||
|
||||
if (uploadPage) {
|
||||
backup.page = "uploaded";
|
||||
backup.backups = [];
|
||||
} else {
|
||||
backup.page = "generated";
|
||||
backup.backups = [];
|
||||
}
|
||||
|
||||
backup.fetchBackups();
|
||||
|
||||
next();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue