|
|
|
@ -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 () => {};
|
|
|
|
|