前端页面调整

This commit is contained in:
2026-06-10 14:18:40 +08:00
parent 9516adc810
commit eb33f534f5
4 changed files with 65 additions and 12 deletions
+5
View File
@@ -175,6 +175,11 @@ const routes: RouteRecordRaw[] = [
component: () => import('@/views/admin/AgentKindEditView.vue'),
meta: { requiresAuth: true, requiresAdmin: true },
},
{
// 兜底:匹配不到的路径(如空参数的 /p/x/w/、手输错误 URL)统一回首页,避免白屏
path: '/:pathMatch(.*)*',
redirect: '/',
},
]
const router = createRouter({
+1 -1
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { onMounted } from 'vue'
import { useAcpStore } from '@/stores/acp'
import AppShell from '@/components/layout/AppShell.vue'
import AppShell from '@/layouts/AppShell.vue'
import SessionStatusBadge from '@/components/acp/SessionStatusBadge.vue'
const store = useAcpStore()