Compare commits

..

2 Commits

Author SHA1 Message Date
zhanxi 60bef7436b merge(chat): 标记前台已删除的历史会话 2026-10-28 08:10:13 +00:00
湛兮 6d3f6a0a8e fix(users): 标记前台已删除的历史会话
- 会话摘要增加软删除时间字段
- 后台聊天列表显示前台已删除状态并保留消息查看入口
2026-10-28 16:08:40 +08:00
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -1239,9 +1239,10 @@ export type DigitalUser = {
conversations: number; conversations: number;
messages: number; messages: number;
}; };
/** 用户所属会话的只读摘要。 */ /** 用户所属会话的只读摘要,包含前台已删除但后台保留的记录。 */
export type UserConversation = { export type UserConversation = {
id: string; id: string;
deletedAt: string | null;
title: string; title: string;
characterId: string; characterId: string;
characterName: string; characterName: string;
+5 -1
View File
@@ -433,7 +433,11 @@ onMounted(load);
@click="chooseConversation(c)" @click="chooseConversation(c)"
> >
<strong>{{ c.characterName }}</strong <strong>{{ c.characterName }}</strong
><span>{{ c.title }}</span ><span
>{{ c.title
}}<el-tag v-if="c.deletedAt" size="small" type="info"
>前台已删除</el-tag
></span
><small ><small
>{{ c.messages }} 条消息 · {{ time(c.updatedAt) }}</small >{{ c.messages }} 条消息 · {{ time(c.updatedAt) }}</small
></button ></button