mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 08:51:32 +08:00
11 lines
403 B
JavaScript
11 lines
403 B
JavaScript
import { createApp } from 'vue/dist/vue.esm-bundler.js';
|
|
import MyModuleShow from '../../vue/my_module/show.vue';
|
|
import { mountWithTurbolinks } from './helpers/turbolinks.js';
|
|
|
|
const app = createApp();
|
|
app.component('MyModuleShow', MyModuleShow);
|
|
app.config.globalProperties.i18n = window.I18n;
|
|
|
|
window.myModuleShow = mountWithTurbolinks(app, '#myModuleShow', () => {
|
|
delete window.myModuleShow;
|
|
});
|