|
@@ -70,8 +70,8 @@
|
|
|
>
|
|
|
<div v-if="item.time">{{ formatTimeDuration(item.time) }}</div>
|
|
|
<div v-if="item.tokens">{{ item.tokens }} Tokens</div>
|
|
|
- <div class="mx-auto" />
|
|
|
- <template v-if="!item.error">
|
|
|
+ <div class="mx-auto" v-if="item.time || item.tokens" />
|
|
|
+ <template v-if="!item.error && item.messageId">
|
|
|
<template v-if="item.feedback == 1">
|
|
|
<el-tooltip content="取消喜欢" placement="top">
|
|
|
<SvgIcon
|
|
@@ -115,18 +115,20 @@
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
</template>
|
|
|
- <el-tooltip content="复制" placement="top">
|
|
|
- <SvgIcon
|
|
|
- class="__hover"
|
|
|
- name="copy"
|
|
|
- size="24"
|
|
|
- @click="
|
|
|
- onCopy(
|
|
|
- textCpt.filter((v) => v.type === 'response')[0]?.text || '',
|
|
|
- )
|
|
|
- "
|
|
|
- />
|
|
|
- </el-tooltip>
|
|
|
+ <template
|
|
|
+ v-if="textCpt.filter((v) => v.type === 'response')[0]?.text"
|
|
|
+ >
|
|
|
+ <el-tooltip content="复制" placement="top">
|
|
|
+ <SvgIcon
|
|
|
+ class="__hover"
|
|
|
+ name="copy"
|
|
|
+ size="24"
|
|
|
+ @click="
|
|
|
+ onCopy(textCpt.filter((v) => v.type === 'response')[0]?.text)
|
|
|
+ "
|
|
|
+ />
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
<el-tooltip content="重新生成" placement="top">
|
|
|
<SvgIcon
|
|
|
class="__hover"
|