Parcourir la source

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

houzekong il y a 7 mois
Parent
commit
a53b670756
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;