feat: 优化前端路由懒加载

This commit is contained in:
2026-06-01 10:49:25 +08:00
parent e0056e609e
commit 01540aeec8
2 changed files with 9 additions and 3 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router';
import FileWorkflow from './components/FileWorkflow.vue';
import HistoryPanel from './components/HistoryPanel.vue';
import DatabasePanel from './components/DatabasePanel.vue';
import SettingsPanel from './components/SettingsPanel.vue';
const HistoryPanel = () => import('./components/HistoryPanel.vue');
const DatabasePanel = () => import('./components/DatabasePanel.vue');
const SettingsPanel = () => import('./components/SettingsPanel.vue');
const ScriptPanel = () => import('./components/ScriptPanel.vue');
const ApiDocs = () => import('./components/ApiDocs.vue');