src/main.ts
@@ -64,6 +64,8 @@ import lifecycles from '@/utils/lifecycles' // 生命周期函数 import * as ElementPlusIconsVue from '@element-plus/icons-vue' // import credentialsFetch from "@/utils/fetch"; const isProduction = process.env.NODE_ENV === "production"; @@ -72,6 +74,10 @@ const setupAll = async () => { const app = createApp(App) for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component) } await setupI18n(app) setupStore(app)