diff --git a/src/layouts/components/LayoutSettings.vue b/src/layouts/components/LayoutSettings.vue index 99c4fbaa..2c73ac55 100644 --- a/src/layouts/components/LayoutSettings.vue +++ b/src/layouts/components/LayoutSettings.vue @@ -178,7 +178,7 @@ import { useSettingsStore } from "@/stores"; import { themeColorPresets } from "@/settings"; // 页面切换动画选项 -const pageSwitchingAnimationOptions: Record = PageSwitchingAnimationOptions; +const pageSwitchingAnimationOptions = PageSwitchingAnimationOptions; // 按钮图标 const copyIcon = markRaw(DocumentCopy); diff --git a/src/main.ts b/src/main.ts index 5aa02ae4..4e19947c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,7 +18,6 @@ import "animate.css"; // ===== 核心配置 ===== import { setupDirective } from "@/directives"; -import { setupI18n } from "@/lang"; import { setupRouter } from "@/router"; import { setupStore } from "@/stores"; @@ -43,7 +42,6 @@ const app = createApp(App); setupDirective(app); setupRouter(app); setupStore(app); -setupI18n(app); // 2️⃣ 全局组件(Element Plus 图标) Object.entries(ElementPlusIcons).forEach(([name, comp]) => app.component(name, comp));