From 3bf5c3394968a346f4698cca82dbb99c53d5334b Mon Sep 17 00:00:00 2001 From: m1m1sha <18262227804@163.com> Date: Fri, 7 Jun 2024 09:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20router?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/router.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/router.ts b/src/modules/router.ts index 1b348ea..ac0994f 100644 --- a/src/modules/router.ts +++ b/src/modules/router.ts @@ -1,11 +1,12 @@ import { setupLayouts } from 'virtual:generated-layouts' import { createRouter, createWebHistory } from 'vue-router/auto' +import { routes } from 'vue-router/auto-routes' import type { UseModule } from '~/types/modules' export const install: UseModule = (app) => { const router = createRouter({ history: createWebHistory(), - extendRoutes: routes => setupLayouts(routes), + routes: setupLayouts(routes), }) app.use(router) }