This commit is contained in:
2025-07-21 21:45:25 +08:00
parent e25f252bed
commit c84ee16e8a

View File

@@ -52,12 +52,6 @@ const routes: RouteRecordRaw[] = [
component: () => import('@/views/AdminMonitor.vue'), component: () => import('@/views/AdminMonitor.vue'),
meta: { title: '系统监控', requiresAdminAuth: true } meta: { title: '系统监控', requiresAdminAuth: true }
}, },
{
path: '/test',
name: 'Test',
component: () => import('@/views/Test.vue'),
meta: { title: 'API测试' }
},
{ {
path: '/:pathMatch(.*)*', path: '/:pathMatch(.*)*',
name: 'NotFound', name: 'NotFound',
@@ -79,7 +73,7 @@ router.beforeEach(async (
) => { ) => {
// 设置页面标题 // 设置页面标题
const title = to.meta.title as string const title = to.meta.title as string
document.title = `${title} - Pandora` document.title = `${title} - AI`
// 检查是否需要用户认证 // 检查是否需要用户认证
if (to.meta.requiresAuth) { if (to.meta.requiresAuth) {