fix: 剧情流连续节点重建 StoryPlayer(:key)+ 提交后隐藏选项防重复

This commit is contained in:
2026-08-13 16:23:28 +08:00
parent 5e191747ab
commit d19d14b2fc
+2 -1
View File
@@ -47,7 +47,7 @@
<!-- 节点剧情流script 非空 v1 卡片回退 -->
<view v-if="curNode && isStoryNode" class="node story-node">
<StoryPlayer :script="storyScript" :character="curNode.character" :show-pinyin="showPinyin" @done="showOptions = true" />
<StoryPlayer :key="curNode.node_id" :script="storyScript" :character="curNode.character" :show-pinyin="showPinyin" @done="showOptions = true" />
<view v-if="showOptions" class="story-options">
<PropPick v-if="activeInteraction === 'PropPick'" :config="curNode.config" @done="interactionDone" />
<FindSpot v-else-if="activeInteraction === 'FindSpot'" :config="curNode.config" @done="interactionDone" />
@@ -265,6 +265,7 @@ export default {
this.sceneFx = ''
if (this.isStoryNode) {
this.reply = fb
this.showOptions = false // 提交后隐藏选项区,防重复点击
} else {
this.feedback = fb
}