改个写法

This commit is contained in:
liaoxuezhi 2021-03-14 16:19:06 +08:00
parent 4b73a97268
commit 408372cf56

View File

@ -64,7 +64,9 @@ export class HeadCellSearchDropDown extends React.Component<
schema = {
title: '',
...searchable,
controls: searchable.controls ? [...searchable.controls] : undefined
controls: Array.isArray(searchable.controls)
? searchable.controls.concat()
: undefined
};
} else {
schema = {