refactor: ♻️ 代码生成在第一步增加校验

代码生成在第一步增加校验
This commit is contained in:
胡少翔
2024-10-15 13:55:55 +08:00
parent 4937f82d0f
commit 945be4e61b

View File

@@ -619,6 +619,19 @@ function handlePrevClick() {
/** 下一步 */ /** 下一步 */
function handleNextClick() { function handleNextClick() {
if (active.value === 0) { if (active.value === 0) {
//这里需要校验基础配置
const { tableName, packageName, businessName, moduleName, entityName } =
genConfigFormData.value;
if (
!tableName ||
!packageName ||
!businessName ||
!moduleName ||
!entityName
) {
ElMessage.error("表名、业务名、包名、模块名、实体名不能为空");
return;
}
initSort(); initSort();
} }
if (active.value === 1) { if (active.value === 1) {