优化规则

This commit is contained in:
icssoa 2021-12-06 10:33:20 +08:00
parent 8e741ffa41
commit 6620e99d4a

View File

@ -212,7 +212,13 @@ function createVue({ router, columns, prefix, api, module, filename }: any): voi
item.required = true; item.required = true;
} }
if (item.component) { if (!["createTime", "updateTime", "id"].includes(item.prop)) {
if (!item.component) {
item.component = {
name: "el-input"
};
}
upsert.items.push(format(item)); upsert.items.push(format(item));
} }