src/main.ts
@@ -12,7 +12,9 @@ import '/@/theme/index.scss'; import '@amap/amap-jsapi-types'; import { getAllData } from './stores/chatRoom'; import { setTheme } from '/@/utils/theme'; setTheme(); const app = createApp(App); for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component); @@ -20,6 +22,7 @@ directive(app); other.elSvg(app); (async function () { await initBackEndControlRoutes(); app.use(pinia).use(router).use(ElementPlus).use(i18n).mount('#app');