캐드 지원 추가

This commit is contained in:
ysj7705 committed 2026-07-21 18:23:50 +09:00
1 parent c1ceec3fb1
commit e18eab7a64
27 files changed
+2787 -89

No files matched your search

+11 -1
View File
@@ -3,4 +3,14 @@ import App from './App.vue';
import router from './router';
import './styles.css';
createApp(App).use(router).mount('#app');
const app = createApp(App);
let cadI18nInstalled = false;
router.beforeEach(async (to) => {
if (to.name !== 'cad-viewer' || cadI18nInstalled) return;
const { i18n } = await import('@mlightcad/cad-viewer');
app.use(i18n);
cadI18nInstalled = true;
});
app.use(router).mount('#app');