|
@@ -696,7 +696,12 @@ export default defineComponent({
|
|
|
state.playType = "play";
|
|
|
state.playSource = state.music ? "music" : "background";
|
|
|
}
|
|
|
- handlerModeChange(oldPlayType, oldPlaySource, true);
|
|
|
+ // 有歌词的时候,切换播放模式,需要重新渲染谱面
|
|
|
+ if (state.xmlHasLyric) {
|
|
|
+ refreshMusicSvg();
|
|
|
+ } else {
|
|
|
+ handlerModeChange(oldPlayType, oldPlaySource, true);
|
|
|
+ }
|
|
|
}}
|
|
|
>
|
|
|
<img style={{ display: state.playType === "play" ? "" : "none" }} class={styles.iconBtn} src={headImg(`perform.png`)} />
|