perf: Assistant domain check

This commit is contained in:
fit2cloud-chenyw
2025-07-29 11:15:41 +08:00
parent f689cbc203
commit 257609df5f
3 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -472,7 +472,8 @@
"duplicate_email": "Duplicate email",
"interface_credentials": "Interface credentials",
"no_credentials_yet": "No credentials yet",
"intelligent_customer_service": "SQLBot Intelligent Customer Service"
"intelligent_customer_service": "SQLBot Intelligent Customer Service",
"origin_format_error": "Format invalid, starts with http or https and cannot end with /"
},
"chat": {
"type": "Chart Type",
@@ -518,4 +519,4 @@
"back_community": "Restore to Community Edition",
"confirm_tips": "Are you sure to restore to Community Edition?"
}
}
}
+3 -2
View File
@@ -487,7 +487,8 @@
"stop_replying": "停止回答",
"i_am_sqlbot": "你好,我是 SQLBot",
"predict_data_etc": "我可以查询数据、生成图表、检测数据异常、预测数据等",
"intelligent_data_query": "赶快开启智能问数吧~"
"intelligent_data_query": "赶快开启智能问数吧~",
"origin_format_error": "格式错误,http或https开头,不能以 / 结尾"
},
"chat": {
"type": "图表类型",
@@ -533,4 +534,4 @@
"back_community": "还原至社区版",
"confirm_tips": "确定还原至社区版?"
}
}
}
@@ -245,6 +245,11 @@ const rules = {
t('datasource.please_enter') + t('common.empty') + t('embedded.cross_domain_settings'),
trigger: 'blur',
},
{
pattern: /^(https?:\/\/)?([\w-]+\.)*[\w-]+(:\d+)?$/,
message: t('embedded.origin_format_error'),
trigger: 'blur',
},
],
}