fix: 剧情流连续节点重建 StoryPlayer(:key)+ 提交后隐藏选项防重复
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user