mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-18 19:49:25 +08:00
fix(data-source): http数据源参数透传入base
This commit is contained in:
parent
bfb30923e1
commit
359806da96
@ -87,12 +87,9 @@ export default class HttpDataSource extends DataSource {
|
|||||||
#type = 'http';
|
#type = 'http';
|
||||||
|
|
||||||
constructor(options: HttpDataSourceOptions) {
|
constructor(options: HttpDataSourceOptions) {
|
||||||
const { options: httpOptions, ...dataSourceOptions } = options.schema;
|
const { options: httpOptions } = options.schema;
|
||||||
|
|
||||||
super({
|
super(options);
|
||||||
schema: dataSourceOptions,
|
|
||||||
app: options.app,
|
|
||||||
});
|
|
||||||
|
|
||||||
this.schema = options.schema;
|
this.schema = options.schema;
|
||||||
this.httpOptions = httpOptions;
|
this.httpOptions = httpOptions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user