Skip to content

Commit 0e7099b

Browse files
perf(X-Pack): Appearance configuration save api error
1 parent d2a220c commit 0e7099b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

backend/apps/system/schemas/system_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class AssistantUiSchema(BaseCreatorDTO):
175175
x_type: Optional[str] = 'right'
176176
x_val: Optional[int] = 0
177177
y_type: Optional[str] = 'bottom'
178-
y_val: Optional[str] = 33
178+
y_val: Optional[int] = 33
179179
name: Optional[str] = None
180180
welcome: Optional[str] = None
181181
welcome_desc: Optional[str] = None

frontend/src/components/layout/Menu.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const routerList = computed(() => {
4444
}
4545
const list = router.getRoutes().filter((route) => {
4646
return (
47+
!route.path.includes('embeddedPage') &&
4748
!route.path.includes('assistant') &&
4849
!route.path.includes('embeddedPage') &&
4950
!route.path.includes('canvas') &&

frontend/src/views/system/embedded/SetUi.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { cloneDeep } from 'lodash-es'
1111
1212
const appearanceStore = useAppearanceStoreWithOut()
1313
const { t } = useI18n()
14+
const currentId = ref()
1415
interface SqlBotForm {
1516
name: string
1617
theme: string
@@ -132,7 +133,7 @@ const buildParam = () => {
132133
formData.append('files', newfile)
133134
})
134135
}
135-
formData.append('data', JSON.stringify(unref(sqlBotForm)))
136+
formData.append('data', JSON.stringify({ ...unref(sqlBotForm), id: currentId.value }))
136137
return formData
137138
}
138139
@@ -223,6 +224,7 @@ const open = (row: any) => {
223224
console.log(JSON.parse(row.configuration))
224225
// rawData = JSON.parse(row.configuration)
225226
// init()
227+
currentId.value = row.id
226228
dialogVisible.value = true
227229
}
228230
defineExpose({

0 commit comments

Comments
 (0)