Commit d8bfea84 authored by tyyin lan's avatar tyyin lan

chore(首页): 切换模型清空聊天参数

parent 68e6c948
......@@ -50,6 +50,7 @@
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/types": "^19.5.0",
"@eslint/js": "^9.21.0",
"@intlify/unplugin-vue-i18n": "^4.0.0",
"@types/howler": "^2.2.12",
"@types/lodash-es": "^4.17.12",
......
This diff is collapsed.
......@@ -349,10 +349,6 @@ function handleSelectImage(cb: () => void) {
cb()
}
defineExpose({
clearSessionReferenceFile: handleFileUploadCancel,
})
const selectMenuRenderLabel: SelectRenderLabel = (option) => {
return h(
'div',
......@@ -411,7 +407,28 @@ const selectMenuRenderTag: SelectRenderTag = ({ option }) => {
function onAgentApplicationInfoUpdate(_key: string, option: AgentApplicationRecordItem) {
currentAgentApplication.value = toValue(option)
if (currentInputFileInfo.value.url) {
currentInputFileInfo.value = {
url: '',
fileName: '',
percentage: 5,
uploading: false,
}
}
if (uploadImageList.value.length > 0) {
uploadImageList.value = []
}
if (questionContent.value) {
questionContent.value = ''
}
}
defineExpose({
clearSessionReferenceFile: handleFileUploadCancel,
})
</script>
<template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment