优化: P2低风险收尾(router404+meta.icon清理+ErrorBoundary接入)

This commit is contained in:
2026-06-19 15:04:05 +08:00
parent 5feeaa6cb0
commit c38cefe47b
2 changed files with 23 additions and 13 deletions

View File

@@ -3,14 +3,18 @@
<!-- 主窗口:页面内容(router-view + 页面切换过渡) -->
<router-view v-slot="{ Component }">
<transition name="page" mode="out-in">
<component :is="Component" />
<ErrorBoundary :key="route.path">
<component :is="Component" />
</ErrorBoundary>
</transition>
</router-view>
<!-- 分离窗口:纯内容 -->
<template #detached>
<router-view v-slot="{ Component }">
<component :is="Component" />
<ErrorBoundary :key="route.path">
<component :is="Component" />
</ErrorBoundary>
</router-view>
</template>
@@ -35,6 +39,7 @@ import { useProjectStore } from './stores/project'
import { useAppSettingsStore } from './stores/appSettings'
import i18n from './i18n'
import AiChat from './components/AiChat.vue'
import ErrorBoundary from './components/ErrorBoundary.vue'
import AppLayout from './components/layout/AppLayout.vue'
import { aiApi } from '@/api'