mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +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 { 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user