From f6c2aa1392d97bebc8416ece33c0be85a12db379 Mon Sep 17 00:00:00 2001 From: "chenrui.92__dcar" Date: Thu, 24 Oct 2024 17:49:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B(xgplayer)=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=B0=83=E7=94=A8changeDefinitionList=E5=90=8E?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=B7=B2=E9=80=89=E6=8B=A9=E7=9A=84=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E8=A2=AB=E9=87=8D=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/xgplayer/src/plugins/definition/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xgplayer/src/plugins/definition/index.js b/packages/xgplayer/src/plugins/definition/index.js index 129971811..ae8a332c6 100644 --- a/packages/xgplayer/src/plugins/definition/index.js +++ b/packages/xgplayer/src/plugins/definition/index.js @@ -103,7 +103,7 @@ export default class DefinitionIcon extends OptionsIcon { } renderItemList (list = this.config.list || [], to) { - const targetDef = to && to.definition ? to.definition : this.config.defaultDefinition + const targetDef = to && to.definition ? to.definition : this.curItem ? this.curItem.definition : this.config.defaultDefinition if (to) { list.forEach((item) => { item.selected = false