mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: bug fix
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
"AI Model Configuration": "AI Model Configuration"
|
||||
},
|
||||
"common": {
|
||||
"limited_to_30": "The number of data tables is limited to 30",
|
||||
"enter_your_password": "Please enter your password",
|
||||
"your_account_email_address": "Please enter your account/email address",
|
||||
"the_correct_password": "Please enter the correct password",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"AI Model Configuration": "模型配置"
|
||||
},
|
||||
"common": {
|
||||
"limited_to_30": "数据表数量限制30",
|
||||
"enter_your_password": "请输入密码",
|
||||
"your_account_email_address": "请输入账号/邮箱",
|
||||
"the_correct_password": "请输入正确的密码",
|
||||
|
||||
@@ -233,7 +233,6 @@ const save = async (formEl: FormInstance | undefined) => {
|
||||
if (!formEl) return
|
||||
await formEl.validate((valid) => {
|
||||
if (valid) {
|
||||
saveLoading.value = true
|
||||
const list = tableList.value
|
||||
.filter((ele: any) => {
|
||||
return checkList.value.includes(ele.tableName)
|
||||
@@ -242,6 +241,12 @@ const save = async (formEl: FormInstance | undefined) => {
|
||||
return { table_name: ele.tableName, table_comment: ele.tableComment }
|
||||
})
|
||||
|
||||
if (checkList.value.length > 30) {
|
||||
ElMessage.error(t('common.limited_to_30'))
|
||||
return
|
||||
}
|
||||
saveLoading.value = true
|
||||
|
||||
const requestObj = buildConf()
|
||||
if (form.value.id) {
|
||||
if (!isEditTable.value) {
|
||||
@@ -278,8 +283,6 @@ const save = async (formEl: FormInstance | undefined) => {
|
||||
.finally(() => {
|
||||
saveLoading.value = false
|
||||
})
|
||||
|
||||
console.log(a, 'datasourceApi')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user