mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
fix: type=legao dont make request
This commit is contained in:
parent
f99a47e502
commit
98ececa9c1
@ -3,6 +3,7 @@ import { isJSFunction } from '@alilc/lowcode-types';
|
|||||||
import { transformArrayToMap, transformStringToFunction, clone } from './common';
|
import { transformArrayToMap, transformStringToFunction, clone } from './common';
|
||||||
import { jsonp, request, get, post } from './request';
|
import { jsonp, request, get, post } from './request';
|
||||||
import { DataSource, DataSourceItem } from '../types';
|
import { DataSource, DataSourceItem } from '../types';
|
||||||
|
import logger from './logger';
|
||||||
|
|
||||||
const DS_STATUS = {
|
const DS_STATUS = {
|
||||||
INIT: 'init',
|
INIT: 'init',
|
||||||
@ -179,7 +180,7 @@ export class DataHelper {
|
|||||||
const _tb_token_ = (csrfInput as any)?.value;
|
const _tb_token_ = (csrfInput as any)?.value;
|
||||||
asyncDataList.forEach((req) => {
|
asyncDataList.forEach((req) => {
|
||||||
const { id, type, options } = req;
|
const { id, type, options } = req;
|
||||||
if (!id || !type) return;
|
if (!id || !type || type === 'legao') return;
|
||||||
if (type === 'doServer') {
|
if (type === 'doServer') {
|
||||||
const { uri, params } = options || {};
|
const { uri, params } = options || {};
|
||||||
if (!uri) return;
|
if (!uri) return;
|
||||||
@ -310,7 +311,7 @@ export class DataHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.error(`Engine default dataSource not support type:[${type}] dataSource request!`);
|
logger.log(`Engine default dataSource not support type:[${type}] dataSource request!`, options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user