| | |
| | | import { ElMessageBox } from 'element-plus'; |
| | | import { computed, reactive, ref } from 'vue'; |
| | | import { addUserSample } from '/@/api/ai/chat'; |
| | | import { activeGroupType } from '/@/stores/chatRoom'; |
| | | import { activeGroupType, activeRoomId, activeSampleId, setRoomConfig } from '/@/stores/chatRoom'; |
| | | const state = reactive({ |
| | | useCommonPhrasesDialog: false, |
| | | show_sample_title: false, |
| | |
| | | }; |
| | | //#endregion |
| | | //#region ====================== 常用语到对话框 ====================== |
| | | const titleClick = (item) => {}; |
| | | const emits = defineEmits<{ |
| | | (event: 'updateCommonChatInput', val): void; |
| | | }>(); |
| | | const titleClick = (item) => { |
| | | emits('updateCommonChatInput', item.title); |
| | | setRoomConfig(activeRoomId.value, 'isAnswerByLLM', false); |
| | | activeSampleId.value = item.id; |
| | | }; |
| | | //#endregion |
| | | </script> |
| | | <style scoped lang="scss"> |