Explorar o código

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

houzekong hai 7 meses
pai
achega
a53b670756
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;