20260728225443

This commit is contained in:
oneao committed 2026-07-28 22:54:43 +08:00
1 parent 5ec7aadef9
commit f6b79ea09a
30 files changed
+1541 -1120

No files matched your search

-10
View File
@@ -1,13 +1,3 @@
export const I18N_LOCALES = [
{ value: "zh-CN", label: "简体中文", shortLabel: "简体" },
{ value: "en-US", label: "English", shortLabel: "English" },
{ value: "zh-TW", label: "繁體中文", shortLabel: "繁體" },
];
export const I18N_LOCALE_CODES = I18N_LOCALES.map((item) => item.value);
// 与数据库 s_module 的 CHECK 约束 CK_s_module_code 保持一致:
// 长度 2-50,以小写字母开头,仅含小写字母/数字/下划线。
export function validateModuleCode(code) {
const value = String(code ?? "").trim();
if (!value) return "编码不能为空";