|
@@ -78,7 +78,7 @@ const onRegenerate = async ({ question, realQuestion }) => {
|
|
|
data: {
|
|
|
sessionId,
|
|
|
showVal: question,
|
|
|
- question: realQuestion || question,
|
|
|
+ question: activeItem.value.prompt,
|
|
|
module: 2,
|
|
|
tools: activeItem.value.tools,
|
|
|
isStrong: Number(unref(switchActive))
|
|
@@ -127,7 +127,6 @@ const onRegenerate = async ({ question, realQuestion }) => {
|
|
|
}
|
|
|
// 提交问题
|
|
|
const handleSubmit = async (question, realQuestion = '') => {
|
|
|
- // 用于模拟 - 内容生成前置等待状态
|
|
|
|
|
|
if (unref(isExistInHistory)) {
|
|
|
const { data: sessionId } = await chatApi.getChatSessionTag();
|
|
@@ -182,10 +181,7 @@ const handleback = async () => {
|
|
|
|
|
|
onMounted(async () => {
|
|
|
const { data } = await helperApi.getHelperList();
|
|
|
- helperList.value = data.map(item => {
|
|
|
- item.tools = item.title === '公文往来' ? "official_writer" : ''
|
|
|
- return item;
|
|
|
- });
|
|
|
+ helperList.value = data;
|
|
|
})
|
|
|
|
|
|
onUnmounted(() => {
|