캐드 지원 추가
This commit is contained in:
1 parent
c1ceec3fb1
commit
e18eab7a64
27 files changed
+2787
-89
No files matched your search
@@ -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');
|
||||
Reference in new issue
Block a user