yangyin
2024-11-03 f04c923e5eafd2df88c3297f539ada7c6eef2232
src/components/chat/components/playBar/phrase/CommonPhrases.vue
@@ -62,7 +62,7 @@
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,
@@ -128,7 +128,14 @@
};
//#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">