This commit is contained in:
雷欧(林平凡)
2025-10-13 17:53:56 +08:00
parent 51f77af121
commit 9cc0ee358c

View File

@@ -14,6 +14,7 @@
<el-button @click="fillMan">慢单</el-button>
<el-button @click="fillTF">TF</el-button>
<el-button @click="fillSheng"></el-button>
<el-button type="success" @click="fillFan"></el-button>
<el-button type="danger" @click="clearAll">清空</el-button>
</el-form-item>
</el-form>
@@ -66,7 +67,7 @@
<div class="history-item-header">
<div class="history-time">{{ extractTime(item) }}</div>
<el-button
size="mini"
size="medium"
icon="el-icon-document-copy"
type="text"
@click="copyHistoryItem(item)"
@@ -82,7 +83,6 @@
<div class="history-column">
<div class="history-header">
<span>历史响应最近 {{ historyLimit }} </span>
<el-button size="mini" type="success" @click="copyHistory('response')">复制全部</el-button>
</div>
<div class="history-content">
<div v-if="responseHistory.length === 0" class="empty-history">
@@ -90,7 +90,18 @@
</div>
<div v-else class="history-list">
<div v-for="(item, idx) in responseHistory" :key="'res-' + idx" class="history-item">
<div class="history-item-header">
<div class="history-time">{{ extractTime(item) }}</div>
<el-button
size="medium"
icon="el-icon-document-copy"
type="text"
@click="copyHistoryItem(item)"
title="复制此条消息">
</el-button>
</div>
<div class="history-text">{{ extractMessage(item) }}</div>
</div>
</div>
@@ -216,6 +227,11 @@ export default {
},
fillSheng() {
this.form.command = '生'
this.run()
},
fillFan() {
this.form.command = '生\r\nF'
this.run()
},
async fillMan() {
// 先尝试查询今天的数据