diff --git a/backend/apps/system/schemas/system_schema.py b/backend/apps/system/schemas/system_schema.py index a9546d45..79eca6f4 100644 --- a/backend/apps/system/schemas/system_schema.py +++ b/backend/apps/system/schemas/system_schema.py @@ -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 diff --git a/frontend/src/components/layout/Menu.vue b/frontend/src/components/layout/Menu.vue index 00f8c3bf..c0f1c91f 100644 --- a/frontend/src/components/layout/Menu.vue +++ b/frontend/src/components/layout/Menu.vue @@ -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') && diff --git a/frontend/src/views/system/embedded/SetUi.vue b/frontend/src/views/system/embedded/SetUi.vue index 5b9de567..e6337cb5 100644 --- a/frontend/src/views/system/embedded/SetUi.vue +++ b/frontend/src/views/system/embedded/SetUi.vue @@ -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({