Commit 8846cb1a authored by nick zheng's avatar nick zheng

fix: 多模型调试页知识库切片抽屉定位区域ID不能数字开头

parent 49ac0799
...@@ -90,7 +90,7 @@ const handleSavePersonalAppConfig = useThrottleFn( ...@@ -90,7 +90,7 @@ const handleSavePersonalAppConfig = useThrottleFn(
function modelDialogueFactory() { function modelDialogueFactory() {
return { return {
id: nanoid(), id: 'dialogue_' + nanoid(),
icon: '', icon: '',
modelNickName: '', modelNickName: '',
topP: 0.1, topP: 0.1,
...@@ -121,7 +121,7 @@ async function handleGetApplicationDetail() { ...@@ -121,7 +121,7 @@ async function handleGetApplicationDetail() {
multiModelDialogueList.value = [ multiModelDialogueList.value = [
currentModelConfig, currentModelConfig,
cloneDeep({ ...currentModelConfig, id: nanoid(), modelNickName: '' }), cloneDeep({ ...currentModelConfig, id: 'dialogue_' + nanoid(), modelNickName: '' }),
] ]
handleGetLargeModelInfo() handleGetLargeModelInfo()
...@@ -173,7 +173,9 @@ function handleBackAgentSetting() { ...@@ -173,7 +173,9 @@ function handleBackAgentSetting() {
// 添加模型 // 添加模型
function handleAddModelDialogue() { function handleAddModelDialogue() {
handleBlockMessageResponse() handleBlockMessageResponse()
multiModelDialogueList.value.push(cloneDeep({ ...multiModelDialogueList.value[0], id: nanoid(), modelNickName: '' })) multiModelDialogueList.value.push(
cloneDeep({ ...multiModelDialogueList.value[0], id: 'dialogue_' + nanoid(), modelNickName: '' }),
)
} }
// 更新应用配置 // 更新应用配置
......
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