diff --git a/packages/source/src/source.ts b/packages/source/src/source.ts index fe5cc5f021..dd042de91f 100644 --- a/packages/source/src/source.ts +++ b/packages/source/src/source.ts @@ -78,7 +78,7 @@ export default class Source extends EventEmitter { public setData(data: any, options?: ISourceCFG) { this.rawData = data; this.originData = data; - this.initCfg(this.cfg); + this.initCfg(options); this.init(); this.emit('update'); }