Skip to content

Commit 98ececa

Browse files
liujupingLeoYuan
authored andcommitted
fix: type=legao dont make request
1 parent f99a47e commit 98ececa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/renderer-core/src/utils/data-helper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { isJSFunction } from '@alilc/lowcode-types';
33
import { transformArrayToMap, transformStringToFunction, clone } from './common';
44
import { jsonp, request, get, post } from './request';
55
import { DataSource, DataSourceItem } from '../types';
6+
import logger from './logger';
67

78
const DS_STATUS = {
89
INIT: 'init',
@@ -179,7 +180,7 @@ export class DataHelper {
179180
const _tb_token_ = (csrfInput as any)?.value;
180181
asyncDataList.forEach((req) => {
181182
const { id, type, options } = req;
182-
if (!id || !type) return;
183+
if (!id || !type || type === 'legao') return;
183184
if (type === 'doServer') {
184185
const { uri, params } = options || {};
185186
if (!uri) return;
@@ -310,7 +311,7 @@ export class DataHelper {
310311
}
311312
}
312313

313-
console.error(`Engine default dataSource not support type:[${type}] dataSource request!`);
314+
logger.log(`Engine default dataSource not support type:[${type}] dataSource request!`, options);
314315
}
315316
}
316317

0 commit comments

Comments
 (0)