update Component

This commit is contained in:
Harvey Zack committed 2023-04-19 02:47:37 +08:00
1 parent 3c8cb0e2e2
commit 90915652aa
5 files changed
+17 -27

No files matched your search

+1 -5
View File
@@ -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();