|
|
@@ -304,6 +304,11 @@ const playDialogueAudio = (isAutoPlay = false) => {
|
|
|
const togglePlay = () => {
|
|
|
isPlaying.value = !isPlaying.value;
|
|
|
if (isPlaying.value) {
|
|
|
+ // 关闭遮罩层(如果显示的话)
|
|
|
+ if (showMask.value) {
|
|
|
+ showMask.value = false;
|
|
|
+ isPlaybackStarted.value = true;
|
|
|
+ }
|
|
|
playBackgroundAudio();
|
|
|
if (!getIsPlaying() && !conversationInProgress.value) {
|
|
|
if (currentDialogue.value?.type === 'video') {
|