File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/renderer-core/src/utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { isJSFunction } from '@alilc/lowcode-types';
33import { transformArrayToMap , transformStringToFunction , clone } from './common' ;
44import { jsonp , request , get , post } from './request' ;
55import { DataSource , DataSourceItem } from '../types' ;
6+ import logger from './logger' ;
67
78const 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
You can’t perform that action at this time.
0 commit comments