diff --git a/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue b/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue
index e89ef196..de7ab065 100644
--- a/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue
+++ b/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue
@@ -523,6 +523,13 @@ function copy(item: any) {
.catch(() => ElMessage.error('复制失败'));
}
+/**
+ * 检查消息是否有有效ID(已保存到后端)
+ */
+function hasValidId(item: MessageItem): boolean {
+ return item.id !== undefined && (typeof item.id === 'string' || (typeof item.id === 'number' && item.id > 0));
+}
+
/**
* 进入删除模式(从指定消息开始)
* @param item - 触发删除的消息
@@ -1298,8 +1305,8 @@ onUnmounted(() => {
-
-
+
+
@@ -1407,9 +1414,10 @@ onUnmounted(() => {
&.delete-mode {
.el-bubble {
- // 删除模式下:用户消息加回 flex:auto
+ // 删除模式下:用户消息加回 flex:auto,并移除 max-width 限制
&[class*="end"] .el-bubble-content-wrapper {
flex: auto;
+ max-width: 100%;
}
// 删除模式下的 content 样式 - 全宽背景