feat:前端文件生成名字全小写问题
1. 驼峰处理className 来定义文件名 2. 前端控制 功能名称必须时首字母大写的英文数字内容
This commit is contained in:
@ -426,10 +426,10 @@
|
|||||||
}); //提示消息
|
}); //提示消息
|
||||||
return false;
|
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({
|
notification.error({
|
||||||
message: t('提示'),
|
message: t('提示'),
|
||||||
description: t('功能名称只能是数字和字母组成,必须以英文字母开头'),
|
description: t('功能名称只能是数字和字母组成,必须以英文字母大写开头'),
|
||||||
}); //提示消息
|
}); //提示消息
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user