Commit cfbf3fc2 authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

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

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