mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-20 14:06:05 +02:00
refactor(frontend): router refactoring
This commit is contained in:
@@ -15,12 +15,12 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { inject, onBeforeUnmount, provide, ref, shallowRef } from 'vue';
|
||||
import type { IRouter, Resolved } from '@/nirax.js';
|
||||
import type { Router, Resolved } from '@/router.js';
|
||||
import MkLoadingPage from '@/pages/_loading_.vue';
|
||||
import { DI } from '@/di.js';
|
||||
|
||||
const props = defineProps<{
|
||||
router?: IRouter;
|
||||
router?: Router;
|
||||
}>();
|
||||
|
||||
const router = props.router ?? inject(DI.router);
|
||||
|
||||
Reference in New Issue
Block a user