模板填充: 匹配free style中的参数

dev/chat
Lei OT 2 years ago
parent 4ceeff2ef3
commit 46a3590e6d

@ -28,7 +28,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage }) => {
const currentConversation = useConversationStore((state) => state.currentConversation);
const templates = useConversationStore((state) => state.templates);
// : customer, agent
const valueMapped = { ...cloneDeep(currentConversation), ...objectMapper(loginUser, { usernameEN: [{ key: 'agent_name' }, { key: 'your_name' }] }) };
const valueMapped = { ...cloneDeep(currentConversation), ...objectMapper(loginUser, { usernameEN: [{ key: 'agent_name' }, { key: 'your_name' }, { key: 'your_name1' }, { key: 'your_name2' }] }) };
useEffect(() => {
setDataSource(templates);
return () => {};

Loading…
Cancel
Save