Skip to content

Commit

Permalink
fix(player): fix media player ref state
Browse files Browse the repository at this point in the history
  • Loading branch information
mryanshenghong committed Jul 27, 2022
1 parent 0603c6f commit bd7f4c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Blog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ const formatTime = (time: string) => format(time);
// const toggleDrawer = (isDrawerShow: boolean) => (state.isDrawerShow = isDrawerShow);
const onMusicPlay = (player: any) => {
const onMusicPlay = () => {
if (currentMediaRef.value) currentMediaRef.value.ele.pause();
store.commit("setMediaRef", {
type: "music",
ele: player,
ele: musicPlayerRef,
});
};
Expand Down

0 comments on commit bd7f4c0

Please sign in to comment.