From b91bffdb4c88d69a8f277aa1a0c778700597720f Mon Sep 17 00:00:00 2001 From: fish Date: Mon, 11 May 2026 22:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=92=91=E4=BD=8D=E5=92=8C=E9=98=BB?= =?UTF-8?q?=E5=8A=9B=E4=BD=8D=E6=94=B9=E4=B8=BA=E9=80=90=E4=B8=AA=E6=A0=87?= =?UTF-8?q?=E6=B3=A8=EF=BC=9A=E8=A1=A8=E6=A0=BC=E7=94=A8S1/R1=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=EF=BC=8C=E6=8A=BD=E5=B1=89=E5=88=86=E5=BC=80=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=AF=8F=E5=B1=82=E4=BB=B7=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/frontend/src/views/DailyDirectionView.vue | 89 ++++++++++++++----- 1 file changed, 65 insertions(+), 24 deletions(-) diff --git a/web/frontend/src/views/DailyDirectionView.vue b/web/frontend/src/views/DailyDirectionView.vue index 5bf0156..45da4bc 100644 --- a/web/frontend/src/views/DailyDirectionView.vue +++ b/web/frontend/src/views/DailyDirectionView.vue @@ -88,12 +88,11 @@ async function handleRun() { } } -function formatLevels(json: string): string { +function parseLevels(json: string): number[] { try { - const arr = JSON.parse(json) as number[] - return arr.join(', ') + return JSON.parse(json) as number[] } catch { - return '-' + return [] } } @@ -146,11 +145,17 @@ onMounted(fetchList) - - + + - - + +