lint: fix code format

This commit is contained in:
kangfenmao 2025-09-28 14:57:01 +08:00
parent e195ad4a8f
commit e401685449

View File

@ -251,11 +251,7 @@ const MentionModelsButton: FC<Props> = ({
if (action === 'esc') {
// 只有在输入触发且有模型选择动作时才删除@字符和搜索文本
const triggerInfo = ctx?.triggerInfo ?? triggerInfoRef.current
if (
hasModelActionRef.current &&
triggerInfo?.type === 'input' &&
triggerInfo?.position !== undefined
) {
if (hasModelActionRef.current && triggerInfo?.type === 'input' && triggerInfo?.position !== undefined) {
// 基于当前光标 + 搜索词精确定位并删除position 仅作兜底
setText((currentText) => {
const textArea = document.querySelector('.inputbar textarea') as HTMLTextAreaElement | null