mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix: bug
This commit is contained in:
parent
c65debf8a0
commit
8606d0bde7
@ -109,6 +109,7 @@ FormModel.registerFlow({
|
|||||||
resource.setAPIClient(ctx.globals.api);
|
resource.setAPIClient(ctx.globals.api);
|
||||||
ctx.model.resource = resource;
|
ctx.model.resource = resource;
|
||||||
}
|
}
|
||||||
|
await ctx.model.applySubModelsAutoFlows('fields');
|
||||||
if (ctx.shared.parentRecord) {
|
if (ctx.shared.parentRecord) {
|
||||||
ctx.model.resource.setFilterByTk(ctx.shared.parentRecord.id);
|
ctx.model.resource.setFilterByTk(ctx.shared.parentRecord.id);
|
||||||
await ctx.model.resource.refresh();
|
await ctx.model.resource.refresh();
|
||||||
|
@ -45,6 +45,7 @@ export class TableAssociationSelectFieldModel extends TableFieldModel {
|
|||||||
use: fieldClass?.name || 'TableFieldModel',
|
use: fieldClass?.name || 'TableFieldModel',
|
||||||
});
|
});
|
||||||
model.collectionField = targetLabelField;
|
model.collectionField = targetLabelField;
|
||||||
|
model.setParent(this.parent);
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user