mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-27 08:48:45 +08:00
feat(i18n): 收口多语言功能业务代码
This commit is contained in:
@@ -231,7 +231,7 @@ export const saveSavedQueryToBackend = async (
|
||||
): Promise<SavedQuery> => {
|
||||
const sanitized = sanitizeSavedQuery(query, 0);
|
||||
if (!sanitized) {
|
||||
throw new Error('保存查询缺少 SQL、连接或数据库上下文');
|
||||
throw new Error(translate('saved_query.error.missing_context'));
|
||||
}
|
||||
if (typeof backend?.SaveQuery !== 'function') {
|
||||
return sanitized;
|
||||
|
||||
Reference in New Issue
Block a user