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