diff --git a/src/views/Conversations/Online/InputComposer.jsx b/src/views/Conversations/Online/InputComposer.jsx index 8880d39..bb967cc 100644 --- a/src/views/Conversations/Online/InputComposer.jsx +++ b/src/views/Conversations/Online/InputComposer.jsx @@ -41,6 +41,11 @@ const InputComposer = ({ mobile }) => { const isExpired = !isEmpty(currentConversation.conversation_expiretime) ? dayjs(currentConversation.conversation_expiretime).add(8, 'hours').isBefore(dayjs()) : true; const gt24h = !isEmpty(currentConversation.last_received_time) ? dayjs().diff(dayjs(currentConversation.last_received_time), 'hour') > 24 : true; const textabled = talkabled && (!(gt24h && isExpired)); // 只要有一个时间没过期, 目前未知明确规则 + const textPlaceHolder = !textabled + ? '' + : mobile === undefined + ? 'Enter 发送, Shift+Enter 换行' + : 'Enter 换行'; const textInputRef = useRef(null); const [textContent, setTextContent] = useState(''); @@ -272,7 +277,7 @@ const InputComposer = ({ mobile }) => { autoSize={{ minRows: 2, maxRows: 6 }} /> - + @@ -283,7 +288,10 @@ const InputComposer = ({ mobile }) => {