소스 검색

[Fix 0000] 修复场景类历史组件没有子设备时表头异常的问题

houzekong 7 달 전
부모
커밋
a53b670756
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/vent/comment/history/HistoryTable.vue

+ 1 - 1
src/views/vent/comment/history/HistoryTable.vue

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