Sfoglia il codice sorgente

Merge pull request #594 from Calcium-Ion/gzip

fix: 标签分组功能开启时无法展开测试模型
Calcium-Ion 1 anno fa
parent
commit
c645bf7eb0
1 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 11 11
      web/src/components/ChannelsTable.js

+ 11 - 11
web/src/components/ChannelsTable.js

@@ -470,18 +470,18 @@ const ChannelsTable = () => {
     let channelTags = {};
     for (let i = 0; i < channels.length; i++) {
       channels[i].key = '' + channels[i].id;
-      if (!enableTagMode) {
-        let test_models = [];
-        channels[i].models.split(',').forEach((item, index) => {
-          test_models.push({
-            node: 'item',
-            name: item,
-            onClick: () => {
-              testChannel(channels[i], item);
-            }
-          });
+      let test_models = [];
+      channels[i].models.split(',').forEach((item, index) => {
+        test_models.push({
+          node: 'item',
+          name: item,
+          onClick: () => {
+            testChannel(channels[i], item);
+          }
         });
-        channels[i].test_models = test_models;
+      });
+      channels[i].test_models = test_models;
+      if (!enableTagMode) {
         channelDates.push(channels[i]);
       } else {
         let tag = channels[i].tag;