优化: P2低风险收尾(router404+meta.icon清理+ErrorBoundary接入)
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user