perf: 模板填充顾问的英文名

dev/chat
Lei OT 1 year ago
parent d3a8f8c927
commit 93a198fbdc

@ -24,6 +24,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage }) => {
const searchInputRef = useRef(null);
const { notification } = App.useApp();
const loginUser = useAuthStore((state) => state.loginUser);
loginUser.username = loginUser.accountList[0].OPI_NameEN.split(' ')?.[0] || loginUser.username;
const currentConversation = useConversationStore((state) => state.currentConversation);
const templates = useConversationStore((state) => state.templates);
// : customer, agent

Loading…
Cancel
Save