mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-13 15:56:15 -08:00
update Component
This commit is contained in:
1 parent
3c8cb0e2e2
commit
90915652aa
5 files changed
+17
-27
No files matched your search
@@ -91,16 +91,12 @@ export default class Setting extends Component {
|
||||
|
||||
remove() {
|
||||
for (let index = 0; index < this.events.length; index++) {
|
||||
const destroyEvent = this.events[index];
|
||||
this.art.events.remove(destroyEvent);
|
||||
destroyEvent();
|
||||
this.art.events.remove(this.events[index]);
|
||||
}
|
||||
this.$parent.innerHTML = '';
|
||||
}
|
||||
|
||||
update(settings = []) {
|
||||
const { option } = this.art;
|
||||
if (!option.setting) return;
|
||||
this.remove();
|
||||
this.events = [];
|
||||
this.cache = new Map();
|
||||
|
||||
Reference in new issue
Block a user