wujingjing
2025-01-02 0124bb334e5d7ae1774c26d1925e0e94a6ba3b0d
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');