Skip to content

Commit

Permalink
Fix: movie change bug player not change
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 8, 2023
1 parent 62574ae commit 600c3f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ onMounted(() => {
Emits("get-instance", art);
const needDestroy = (art: Artplayer, newOption: Option) => {
return art && (art.option.isLive !== newOption.isLive) || (art.option.type !== newOption.type)
return art && (art.option.isLive !== newOption.isLive) || (art.option.type !== newOption.type) || (art.option.url !== newOption.url)
}
watch(
Expand All @@ -233,6 +233,8 @@ onMounted(() => {
artplayer.value = newDiv;
art = new Artplayer(playerOption.value);
Emits("get-instance", art);
} else {
//
}
}
);
Expand Down

0 comments on commit 600c3f1

Please sign in to comment.