fix: 修复调试不能播放问题

This commit is contained in:
wangdan-fit2cloud 2024-09-19 14:56:55 +08:00
parent 4ad2ec5268
commit 7cb355777c
2 changed files with 56 additions and 54 deletions

View File

@ -14,59 +14,61 @@
</el-tooltip> </el-tooltip>
<el-divider direction="vertical" /> <el-divider direction="vertical" />
</span> </span>
<el-tooltip effect="dark" content="换个答案" placement="top"> <span v-if="applicationId">
<el-button :disabled="chat_loading" text @click="regeneration"> <el-tooltip effect="dark" content="换个答案" placement="top">
<el-icon><RefreshRight /></el-icon> <el-button :disabled="chat_loading" text @click="regeneration">
</el-button> <el-icon><RefreshRight /></el-icon>
</el-tooltip> </el-button>
<el-divider direction="vertical" /> </el-tooltip>
<el-tooltip effect="dark" content="复制" placement="top"> <el-divider direction="vertical" />
<el-button text @click="copyClick(data?.answer_text)"> <el-tooltip effect="dark" content="复制" placement="top">
<AppIcon iconName="app-copy"></AppIcon> <el-button text @click="copyClick(data?.answer_text)">
</el-button> <AppIcon iconName="app-copy"></AppIcon>
</el-tooltip> </el-button>
<el-divider direction="vertical" /> </el-tooltip>
<el-tooltip <el-divider direction="vertical" />
effect="dark" <el-tooltip
content="赞同" effect="dark"
placement="top" content="赞同"
v-if="buttonData?.vote_status === '-1'" placement="top"
> v-if="buttonData?.vote_status === '-1'"
<el-button text @click="voteHandle('0')" :disabled="loading"> >
<AppIcon iconName="app-like"></AppIcon> <el-button text @click="voteHandle('0')" :disabled="loading">
</el-button> <AppIcon iconName="app-like"></AppIcon>
</el-tooltip> </el-button>
<el-tooltip </el-tooltip>
effect="dark" <el-tooltip
content="取消赞同" effect="dark"
placement="top" content="取消赞同"
v-if="buttonData?.vote_status === '0'" placement="top"
> v-if="buttonData?.vote_status === '0'"
<el-button text @click="voteHandle('-1')" :disabled="loading"> >
<AppIcon iconName="app-like-color"></AppIcon> <el-button text @click="voteHandle('-1')" :disabled="loading">
</el-button> <AppIcon iconName="app-like-color"></AppIcon>
</el-tooltip> </el-button>
<el-divider direction="vertical" v-if="buttonData?.vote_status === '-1'" /> </el-tooltip>
<el-tooltip <el-divider direction="vertical" v-if="buttonData?.vote_status === '-1'" />
effect="dark" <el-tooltip
content="反对" effect="dark"
placement="top" content="反对"
v-if="buttonData?.vote_status === '-1'" placement="top"
> v-if="buttonData?.vote_status === '-1'"
<el-button text @click="voteHandle('1')" :disabled="loading"> >
<AppIcon iconName="app-oppose"></AppIcon> <el-button text @click="voteHandle('1')" :disabled="loading">
</el-button> <AppIcon iconName="app-oppose"></AppIcon>
</el-tooltip> </el-button>
<el-tooltip </el-tooltip>
effect="dark" <el-tooltip
content="取消反对" effect="dark"
placement="top" content="取消反对"
v-if="buttonData?.vote_status === '1'" placement="top"
> v-if="buttonData?.vote_status === '1'"
<el-button text @click="voteHandle('-1')" :disabled="loading"> >
<AppIcon iconName="app-oppose-color"></AppIcon> <el-button text @click="voteHandle('-1')" :disabled="loading">
</el-button> <AppIcon iconName="app-oppose-color"></AppIcon>
</el-tooltip> </el-button>
</el-tooltip>
</span>
</div> </div>
<!-- 先渲染不然不能播放 --> <!-- 先渲染不然不能播放 -->
<audio ref="audioPlayer" controls hidden="hidden"></audio> <audio ref="audioPlayer" controls hidden="hidden"></audio>

View File

@ -148,7 +148,7 @@
</el-button> </el-button>
</div> </div>
</div> </div>
<div v-if="item.write_ed && props.appId && 500 != item.status" class="flex-between"> <div v-if="item.write_ed && 500 != item.status" class="flex-between">
<OperationButton <OperationButton
:tts="props.data.tts_model_enable" :tts="props.data.tts_model_enable"
:tts_type="props.data.tts_type" :tts_type="props.data.tts_type"