Skip to content

Commit 6620e99

Browse files
committed
优化规则
1 parent 8e741ff commit 6620e99

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build/plugins/cool.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,13 @@ function createVue({ router, columns, prefix, api, module, filename }: any): voi
212212
item.required = true;
213213
}
214214

215-
if (item.component) {
215+
if (!["createTime", "updateTime", "id"].includes(item.prop)) {
216+
if (!item.component) {
217+
item.component = {
218+
name: "el-input"
219+
};
220+
}
221+
216222
upsert.items.push(format(item));
217223
}
218224

0 commit comments

Comments
 (0)