mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf(X-Pack): Appearance configuration save api error
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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') &&
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user