Update router.ts

This commit is contained in:
syuilo 2024-08-22 13:37:47 +09:00
parent 47262f6226
commit 4e791df615
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@
import type { IRouter, RouteDef } from '@/nirax.js'; import type { IRouter, RouteDef } from '@/nirax.js';
import { Router } from '@/nirax.js'; import { Router } from '@/nirax.js';
import { page } from '@/router/definition.js'; import { page } from '@/router/definition.js';
import { $i } from '@/account.js';
const routes: RouteDef[] = [{ const routes: RouteDef[] = [{
path: '/embed/notes/:noteId', path: '/embed/notes/:noteId',
@ -26,5 +25,5 @@ const routes: RouteDef[] = [{
}]; }];
export function createEmbedRouter(path: string): IRouter { export function createEmbedRouter(path: string): IRouter {
return new Router(routes, path, !!$i, page(() => import('@/pages/not-found.vue'))); return new Router(routes, path, false, page(() => import('@/pages/not-found.vue')));
} }