Commit 3194e4e4 authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

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

See merge request !185
parents 49ac0799 8846cb1a
......@@ -90,7 +90,7 @@ const handleSavePersonalAppConfig = useThrottleFn(
function modelDialogueFactory() {
return {
id: nanoid(),
id: 'dialogue_' + nanoid(),
icon: '',
modelNickName: '',
topP: 0.1,
......@@ -121,7 +121,7 @@ async function handleGetApplicationDetail() {
multiModelDialogueList.value = [
currentModelConfig,
cloneDeep({ ...currentModelConfig, id: nanoid(), modelNickName: '' }),
cloneDeep({ ...currentModelConfig, id: 'dialogue_' + nanoid(), modelNickName: '' }),
]
handleGetLargeModelInfo()
......@@ -173,7 +173,9 @@ function handleBackAgentSetting() {
// 添加模型
function handleAddModelDialogue() {
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