mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Assistant domain check
This commit is contained in:
@@ -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?"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user