mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: shared context
This commit is contained in:
parent
951380a27d
commit
62148c7205
@ -851,8 +851,7 @@ export class FlowModel<Structure extends { parent?: any; subModels?: any } = Def
|
||||
}
|
||||
|
||||
public setSharedContext(ctx: Record<string, any>) {
|
||||
this._sharedContext = ctx;
|
||||
// this._sharedContext = { ...this._sharedContext, ...ctx };
|
||||
this._sharedContext = { ...this._sharedContext, ...ctx };
|
||||
}
|
||||
|
||||
public getSharedContext() {
|
||||
|
@ -121,7 +121,7 @@ export class ForkFlowModel<TMaster extends FlowModel = FlowModel> {
|
||||
}
|
||||
|
||||
public setSharedContext(ctx: Record<string, any>) {
|
||||
this['_sharedContext'] = ctx;
|
||||
this['_sharedContext'] = { ...this['_sharedContext'], ...ctx };
|
||||
}
|
||||
|
||||
public getSharedContext() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user