This commit is contained in:
dataeaseShu
2025-08-20 14:00:23 +08:00
5 changed files with 7 additions and 3 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
@@ -65,6 +65,7 @@ class Settings(BaseSettings):
SQL_DEBUG: bool = False
UPLOAD_DIR: str = "/opt/sqlbot/data/file"
SQLBOT_KEY_EXPIRED: int = 100 # License key expiration timestamp, 0 means no expiration
@computed_field # type: ignore[prop-decorator]
@property
+1 -1
View File
@@ -36,7 +36,7 @@ dependencies = [
"pyyaml (>=6.0.2,<7.0.0)",
"fastapi-mcp (>=0.3.4,<0.4.0)",
"tabulate>=0.9.0",
"sqlbot-xpack==0.0.3.16",
"sqlbot-xpack>=0.0.3.19,<1.0.0",
"fastapi-cache2>=0.2.2",
"sqlparse>=0.5.3",
"redis>=6.2.0",
+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
@@ -10,6 +10,7 @@ import { cloneDeep } from 'lodash-es'
const appearanceStore = useAppearanceStoreWithOut()
const { t } = useI18n()
const currentId = ref()
interface SqlBotForm {
name: string
theme: string
@@ -131,7 +132,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
}
@@ -204,6 +205,7 @@ const open = (row: any) => {
console.log(JSON.parse(row.configuration))
// rawData = JSON.parse(row.configuration)
// init()
currentId.value = row.id
dialogVisible.value = true
nextTick(() => {
setPageCustomColor('#1CBA90')