perf(X-Pack): Appearance configuration save api error

This commit is contained in:
fit2cloud-chenyw
2025-08-20 13:42:15 +08:00
parent d2a220c5a5
commit 0e7099bbdc
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ class AssistantUiSchema(BaseCreatorDTO):
x_type: Optional[str] = 'right'
x_val: Optional[int] = 0
y_type: Optional[str] = 'bottom'
y_val: Optional[str] = 33
y_val: Optional[int] = 33
name: Optional[str] = None
welcome: Optional[str] = None
welcome_desc: Optional[str] = None
+1
View File
@@ -44,6 +44,7 @@ const routerList = computed(() => {
}
const list = router.getRoutes().filter((route) => {
return (
!route.path.includes('embeddedPage') &&
!route.path.includes('assistant') &&
!route.path.includes('embeddedPage') &&
!route.path.includes('canvas') &&
+3 -1
View File
@@ -11,6 +11,7 @@ import { cloneDeep } from 'lodash-es'
const appearanceStore = useAppearanceStoreWithOut()
const { t } = useI18n()
const currentId = ref()
interface SqlBotForm {
name: string
theme: string
@@ -132,7 +133,7 @@ const buildParam = () => {
formData.append('files', newfile)
})
}
formData.append('data', JSON.stringify(unref(sqlBotForm)))
formData.append('data', JSON.stringify({ ...unref(sqlBotForm), id: currentId.value }))
return formData
}
@@ -223,6 +224,7 @@ const open = (row: any) => {
console.log(JSON.parse(row.configuration))
// rawData = JSON.parse(row.configuration)
// init()
currentId.value = row.id
dialogVisible.value = true
}
defineExpose({