This commit is contained in:
Harvey committed 2022-05-05 18:17:02 +08:00
1 parent 2df5d7dc6d
commit f74a2633b3
3 files changed
+13 -13

No files matched your search

@@ -761,7 +761,7 @@ class Control {
this.danmuku = danmuku;
this.apps = new Map();
}
mount($el) {
mount(el) {
const that = this;
const app1 = _vue.createApp(_appVueDefault.default);
app1.use({
@@ -770,15 +770,15 @@ class Control {
app.config.globalProperties.$danmuku = that.danmuku;
}
});
app1.mount($el);
this.apps.set($el, app1);
app1.mount(el);
this.apps.set(el, app1);
return app1;
}
unmount($el) {
const app = this.apps.get($el);
unmount(el) {
const app = this.apps.get(el);
if (app) {
app.unmount();
this.apps.delete($el);
this.apps.delete(el);
}
}
}