mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
优化规则
This commit is contained in:
parent
8e741ffa41
commit
6620e99d4a
@ -212,7 +212,13 @@ function createVue({ router, columns, prefix, api, module, filename }: any): voi
|
||||
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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user