yangyin
2024-12-13 8526b974cfe1b270902d5c284faef3bc2ac6d63a
src/main.ts
@@ -6,12 +6,13 @@
import { i18n } from '/@/i18n/index';
import other from '/@/utils/other';
import "@amap/amap-jsapi-types";
import '/@/extend';
import ElementPlus from 'element-plus';
import '/@/theme/index.scss';
import VueGridLayout from 'vue-grid-layout';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import { gotoRoute } from '/@/utils/route';
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
@@ -19,7 +20,7 @@
}
directive(app);
other.elSvg(app);
app.use(pinia).use(router).use(ElementPlus).use(i18n).use(VueGridLayout).mount('#app');
app.use(pinia).use(router).use(ElementPlus).use(i18n).mount('#app');
window.openPage = (name, siteId) => {
   if (siteId) {