|
@@ -1078,17 +1078,17 @@ export default defineComponent({
|
|
|
]}
|
|
|
onClick={() => {
|
|
|
// C调能播放唱名,非C调时,只有谱面类型是首调时,才能播放唱名
|
|
|
- // if (!state.isCTone && state.playSource === 'mingSong') {
|
|
|
- // const notPlayDesc = state.musicRenderType === EnumMusicRenderType.staff ? '该曲目的五线谱目前还不支持播放唱名' : state.musicRenderType === EnumMusicRenderType.fixedTone ? '该曲目的固定调目前还不支持播放唱名' : '';
|
|
|
- // if (notPlayDesc) {
|
|
|
- // showToast({
|
|
|
- // message: notPlayDesc,
|
|
|
- // position: "top",
|
|
|
- // className: "selectionToast",
|
|
|
- // });
|
|
|
- // return
|
|
|
- // }
|
|
|
- // }
|
|
|
+ if (!state.isCTone && state.playSource === 'mingSong') {
|
|
|
+ const notPlayDesc = state.musicRenderType === EnumMusicRenderType.staff ? '该曲目的五线谱目前还不支持播放唱名' : state.musicRenderType === EnumMusicRenderType.fixedTone ? '该曲目的固定调目前还不支持播放唱名' : '';
|
|
|
+ if (notPlayDesc) {
|
|
|
+ showToast({
|
|
|
+ message: notPlayDesc,
|
|
|
+ position: "top",
|
|
|
+ className: "selectionToast",
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
togglePlay(state.playState === "play" ? "paused" : "play")
|
|
|
}}
|
|
|
>
|