chore: checkpoint admin restore state

This commit is contained in:
john
2026-06-30 20:26:33 +08:00
parent f2172322fd
commit f9a7584ad4
63 changed files with 7555 additions and 1030 deletions
+9
View File
@@ -0,0 +1,9 @@
export const routerBasename = (() => {
const raw = String(import.meta.env.VITE_BASE_PATH ?? '').trim().replace(/\/$/, '');
if (!raw || raw === '/') return '';
return raw.startsWith('/') ? raw : `/${raw}`;
})();
export function defaultHomePath(role: string | undefined) {
return role === 'admin' ? '/' : '/ops';
}