🎨 优化角色卡功能模块,后续待优化图像上传&前端流畅性待优化
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
{{ character.isFavorited ? '已收藏' : '收藏' }}
|
||||
</el-button>
|
||||
<el-button
|
||||
:icon="Like"
|
||||
:icon="Top"
|
||||
@click="handleLike"
|
||||
>
|
||||
点赞 {{ character.totalLikes }}
|
||||
@@ -107,6 +107,16 @@
|
||||
<h3>场景设定</h3>
|
||||
<p class="detail-text">{{ character.scenario || '暂无场景设定' }}</p>
|
||||
</div>
|
||||
|
||||
<div v-if="character.systemPrompt" class="detail-section">
|
||||
<h3>系统提示词</h3>
|
||||
<div class="message-box">{{ character.systemPrompt }}</div>
|
||||
</div>
|
||||
|
||||
<div v-if="character.postHistoryInstructions" class="detail-section">
|
||||
<h3>后置历史指令</h3>
|
||||
<div class="message-box">{{ character.postHistoryInstructions }}</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane label="对话示例">
|
||||
@@ -129,6 +139,19 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane v-if="character.alternateGreetings && character.alternateGreetings.length > 0" label="备用问候语">
|
||||
<div class="detail-section">
|
||||
<div
|
||||
v-for="(greeting, index) in character.alternateGreetings"
|
||||
:key="index"
|
||||
class="message-box"
|
||||
>
|
||||
<div class="greeting-label">问候语 {{ index + 1 }}</div>
|
||||
{{ greeting }}
|
||||
</div>
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane label="统计信息">
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="对话总数">
|
||||
@@ -155,6 +178,12 @@
|
||||
<el-descriptions-item label="更新时间">
|
||||
{{ formatDateTime(character.updatedAt) }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="character.extensions && Object.keys(character.extensions).length > 0" label="扩展数据">
|
||||
{{ Object.keys(character.extensions).join(', ') }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="character.characterBook" label="角色书">
|
||||
已配置
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-tab-pane>
|
||||
|
||||
@@ -181,7 +210,7 @@ import {
|
||||
ChatLineSquare,
|
||||
Star,
|
||||
StarFilled,
|
||||
Like,
|
||||
Top,
|
||||
Download,
|
||||
Edit,
|
||||
Delete,
|
||||
@@ -422,5 +451,12 @@ onMounted(async () => {
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.greeting-label {
|
||||
font-size: 12px;
|
||||
color: #909399;
|
||||
margin-bottom: 8px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user