This commit is contained in:
黎永顺 2024-02-22 15:16:09 +08:00
parent d171afcafe
commit e56123201f
1 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,10 @@ const UnitTable: FC = (props) => {
const receiveMessageFromIndex = (event: any) => {
const data: any = exceptStr(event.data);
if (!_.isEmpty(data)) {
const { columns, dataSource, pageInfo, scrollHeight, i18n, showOperateBtn, unitTableType } = data;
const {
columns, dataSource, pageInfo, scrollHeight, i18n,
showOperateBtn, unitTableType = "welfareRecord"
} = data;
setI18n(i18n);
setScrollHeight(scrollHeight);
setUnitTableType(unitTableType);