File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
backend/apps/system/schemas Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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' ) &&
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { cloneDeep } from 'lodash-es'
1111
1212const appearanceStore = useAppearanceStoreWithOut ()
1313const { t } = useI18n ()
14+ const currentId = ref ()
1415interface 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}
228230defineExpose ({
You can’t perform that action at this time.
0 commit comments