Skip to content

Commit

Permalink
fix: 🐛(xgplayer) 修复调用definition插件的changeDefinitionList方法后内部还是使用初始定义的d…
Browse files Browse the repository at this point in the history
…efinition.list的bug
  • Loading branch information
chenrui.92__dcar committed Oct 24, 2024
1 parent 67194ee commit d4c4bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xgplayer/src/plugins/definition/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default class DefinitionIcon extends OptionsIcon {
}

onItemClick (e, data) {
const { definitionList } = this.player
const { list: definitionList } = this.config
super.onItemClick(...arguments)
this.emitUserAction(e, 'change_definition', { from: data.from, to: data.to })
for (let i = 0; i < definitionList.length; i++) {
Expand Down

0 comments on commit d4c4bd0

Please sign in to comment.