diff --git a/components/apolloTable/utils/formHelper.tsx b/components/apolloTable/utils/formHelper.tsx index 3e7f328634f6b40ee680e78e05111e108d590ad6..5e3fcde44dc705ea6ac4aa5ee08f4ac9a1c7ef9f 100644 --- a/components/apolloTable/utils/formHelper.tsx +++ b/components/apolloTable/utils/formHelper.tsx @@ -1,5 +1,7 @@ /* eslint-disable no-case-declarations */ // 判断是Android 或 iOS +import {emptyModel} from "@/submodule/components/apolloTable/component/base/_utils/setFormatter"; + const platform = (function checkPlatForm() { // const u = window.navigator.userAgent; // const isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端 @@ -372,9 +374,17 @@ const changTableDynamicValue = ({ behavior, originValue }: any) => { cellValueList: [], }); } else { + let cell = emptyModel; + if (Array.isArray(extraData[t])) { + if (extraData[t].length > 0) { + cell = extraData[t]; + } + } else if (extraData[t]) { + cell = [extraData[t]]; + } result.push({ columnCode: t, - cellValueList: Array.isArray(extraData[t]) ? extraData[t] : [extraData[t]], + cellValueList: cell, }); } });