Commit eb99234e authored by nick zheng's avatar nick zheng

fix: 保存应用时标题不为空

parent 36f05180
......@@ -115,11 +115,19 @@ const handleSavePersonalAppConfig = useThrottleFn(
// 保存应用配置
async function handleSaveAgentApplication() {
if (!baseInfo.value.agentTitle) {
return
}
await fetchSaveAgentApplication<PersonalAppConfigState>(personalAppConfigStore.$state)
}
// 更新保存应用ID
async function handleUpdatePersonalAppId() {
if (!baseInfo.value.agentTitle) {
return
}
const res = await fetchSaveAgentApplication<PersonalAppConfigState>(personalAppConfigStore.$state)
if (res.code === 0) {
......@@ -362,13 +370,13 @@ function handleStopGenerate() {
</span>
</div>
<NCollapse :default-expanded-names="['1']" class="px-5">
<NCollapse :default-expanded-names="['baseInfo']" class="px-5" display-directive="show">
<template #arrow>
<RightOne theme="multi-color" size="17" :fill="['#333', '#333', '#333', '#333']" />
</template>
<NCollapseItem
:title="t('personal_space_module.agent_module.agent_setting_module.agent_config_module.base_info')"
name="1"
name="baseInfo"
class="my-[13px]!"
>
<div class="justify-left flex items-start pl-5">
......
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