refactor(frontend): router refactoring

This commit is contained in:
syuilo
2025-03-19 15:24:56 +09:00
parent bdc72e5817
commit 7d4045e8b4
10 changed files with 29 additions and 111 deletions

View File

@@ -4,11 +4,11 @@
*/
import type { InjectionKey, Ref } from 'vue';
import type { IRouter } from '@/nirax.js';
import type { Router } from '@/router.js';
export const DI = {
routerCurrentDepth: Symbol() as InjectionKey<number>,
router: Symbol() as InjectionKey<IRouter>,
router: Symbol() as InjectionKey<Router>,
mock: Symbol() as InjectionKey<boolean>,
pageMetadata: Symbol() as InjectionKey<Ref<Record<string, any>>>,
};