From b5d273b680314d7e28d7e3ba1ed6dd6344dde80d Mon Sep 17 00:00:00 2001 From: CalciumIon <1808837298@qq.com> Date: Thu, 5 Dec 2024 14:41:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=87=E7=AD=BE=E5=88=86=E7=BB=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=BC=80=E5=90=AF=E6=97=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E6=B5=8B=E8=AF=95=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ChannelsTable.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/web/src/components/ChannelsTable.js b/web/src/components/ChannelsTable.js index cae9f003..9e913677 100644 --- a/web/src/components/ChannelsTable.js +++ b/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;