|
@@ -121,7 +121,7 @@
|
|
* @param prefix 子设备的值,即为表头取数据时字段的前缀
|
|
* @param prefix 子设备的值,即为表头取数据时字段的前缀
|
|
*/
|
|
*/
|
|
function updateColumns(prefix?: string) {
|
|
function updateColumns(prefix?: string) {
|
|
- if (!prefix) return;
|
|
|
|
|
|
+ if (!prefix) return setColumns(originColumns);
|
|
// 如果有子设备信息,筛选符合规范的表头
|
|
// 如果有子设备信息,筛选符合规范的表头
|
|
const cols = originColumns.map((col) => {
|
|
const cols = originColumns.map((col) => {
|
|
const dataIndex = col.dataIndex as string;
|
|
const dataIndex = col.dataIndex as string;
|