feat:前端文件生成名字全小写问题

1. 驼峰处理className 来定义文件名
2. 前端控制	功能名称必须时首字母大写的英文数字内容
This commit is contained in:
lvjunzhao
2025-03-04 12:24:04 +08:00
parent d236508b4d
commit 078825a206

View File

@ -426,10 +426,10 @@
}); //提示消息
return false;
}
if (!/^[a-zA-Z][a-zA-Z0-9]*$/.test(outputConfig.className!)) {
if (!/^[A-Z][a-zA-Z0-9]*$/.test(outputConfig.className!)) {
notification.error({
message: t('提示'),
description: t('功能名称只能是数字和字母组成,必须以英文字母开头'),
description: t('功能名称只能是数字和字母组成,必须以英文字母大写开头'),
}); //提示消息
return false;
}