1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const load = async function () { return await STUDIP.loadChunk('vue'); }; const on = async function (...args) { const { eventBus } = await load(); eventBus.on(...args); }; const emit = async function (...args) { const { eventBus } = await load(); eventBus.emit(...args); }; export default { load, on, emit };