|
|
@@ -440,8 +440,18 @@ const playPrevious = () => {
|
|
|
// 显示诗词并替换内容为最新的诗词
|
|
|
showPoem.value = true
|
|
|
currentPoemContent.value = currentDialogue.value.content
|
|
|
- playPrevious()
|
|
|
- return
|
|
|
+ } else {
|
|
|
+ showPoem.value = false
|
|
|
+ currentPoemContent.value = ""
|
|
|
+ //读取上一条诗词内容显示
|
|
|
+ for (let i = currentDialogueIndex.value; i >= 0; i--) {
|
|
|
+ let dialogueTemp = currentSection.value.dialogues[i];
|
|
|
+ if (dialogueTemp.type === 'poem'){
|
|
|
+ // 显示诗词并替换内容为最新的诗词
|
|
|
+ showPoem.value = true
|
|
|
+ currentPoemContent.value = dialogueTemp.content
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 播放背景音
|