fix(web): 移除 ConsultationDetail 残留的 sender_id/sender_role 字段
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

前端发送消息时不再提交 sender_id 和 sender_role,
这些字段由后端从 JWT 上下文自动填充。
This commit is contained in:
iven
2026-04-30 11:34:20 +08:00
parent a96b065190
commit 1bebb57765

View File

@@ -169,8 +169,6 @@ export default function ConsultationDetail() {
await consultationApi.createMessage({
session_id: sessionId,
sender_id: '',
sender_role: 'doctor',
content_type: 'text',
content: text,
});