mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 10:01:20 -08:00
update Setting
This commit is contained in:
1 parent
7b65b414ff
commit
90a5f6d045
3 files changed
+4
-4
No files matched your search
@@ -120,7 +120,7 @@ export default class Setting extends Component {
|
||||
remove(name) {
|
||||
const item = this.find(name);
|
||||
errorHandle(item, `Can't find [${name}] from the [setting]`);
|
||||
const parent = item.$parentItem?.selector || this.option;
|
||||
const parent = item.$parentItem ? item.$parentItem.selector : this.option;
|
||||
parent.splice(parent.indexOf(item), 1);
|
||||
this.option = Setting.makeRecursion(this.option);
|
||||
this.destroy();
|
||||
|
||||
Reference in new issue
Block a user