mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix: tree collection target error (#4105)
This commit is contained in:
parent
1bacd00739
commit
d24c30a7f8
@ -67,7 +67,9 @@ export class TreeCollectionTemplate extends CollectionTemplate {
|
|||||||
beforeSubmit(values) {
|
beforeSubmit(values) {
|
||||||
if (Array.isArray(values?.fields)) {
|
if (Array.isArray(values?.fields)) {
|
||||||
values?.fields.map((f) => {
|
values?.fields.map((f) => {
|
||||||
|
if (!f.target) {
|
||||||
f.target = values.name;
|
f.target = values.name;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user