chore: checkpoint admin restore state
This commit is contained in:
@@ -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';
|
||||
}
|
||||
Reference in New Issue
Block a user