fix: type=legao dont make request

This commit is contained in:
liujuping 2022-05-06 15:58:04 +08:00 committed by LeoYuan 袁力皓
parent f99a47e502
commit 98ececa9c1

View File

@ -3,6 +3,7 @@ import { isJSFunction } from '@alilc/lowcode-types';
import { transformArrayToMap, transformStringToFunction, clone } from './common';
import { jsonp, request, get, post } from './request';
import { DataSource, DataSourceItem } from '../types';
import logger from './logger';
const DS_STATUS = {
INIT: 'init',
@ -179,7 +180,7 @@ export class DataHelper {
const _tb_token_ = (csrfInput as any)?.value;
asyncDataList.forEach((req) => {
const { id, type, options } = req;
if (!id || !type) return;
if (!id || !type || type === 'legao') return;
if (type === 'doServer') {
const { uri, params } = options || {};
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);
}
}