mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
update
This commit is contained in:
1 parent
8b8ac80d72
commit
8a5c96f8bf
3 files changed
+13
-13
No files matched your search
@@ -18,7 +18,7 @@ export default class Control {
|
||||
this.apps = new Map();
|
||||
}
|
||||
|
||||
mount($el) {
|
||||
mount(el) {
|
||||
const that = this;
|
||||
const app = createApp(App);
|
||||
|
||||
@@ -29,17 +29,17 @@ export default class Control {
|
||||
},
|
||||
});
|
||||
|
||||
app.mount($el);
|
||||
this.apps.set($el, app);
|
||||
app.mount(el);
|
||||
this.apps.set(el, app);
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user