From cfefcedc16c8077edcd3b254a593f7922bd60f6e Mon Sep 17 00:00:00 2001 From: engigu Date: Mon, 23 Mar 2026 22:30:40 +0800 Subject: [PATCH] chore: fix shell exec node path --- web/src/views/dashboard/Dashboard.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/views/dashboard/Dashboard.vue b/web/src/views/dashboard/Dashboard.vue index 83024b5..aa3268b 100644 --- a/web/src/views/dashboard/Dashboard.vue +++ b/web/src/views/dashboard/Dashboard.vue @@ -161,7 +161,7 @@ const renderLineChart = () => { { name: '执行失败', data: sendStats.value.map(item => item.failed) } ], chart: { - type: 'line', + type: 'line' as const, height: 300, toolbar: { show: false }, background: 'transparent', @@ -181,7 +181,7 @@ const renderLineChart = () => { opacity: 0.2 } }, - stroke: { curve: 'smooth', width: 3, lineCap: 'round' }, + stroke: { curve: 'smooth' as const, width: 3, lineCap: 'round' as const }, markers: { size: 6, colors: ['#3b82f6', '#10b981', '#ef4444'], @@ -226,8 +226,8 @@ const renderLineChart = () => { padding: { top: 0, right: 5, bottom: 0, left: 0 } }, legend: { - position: 'top', - horizontalAlign: 'right', + position: 'top' as const, + horizontalAlign: 'right' as const, floating: true, offsetY: -25, offsetX: -5, @@ -276,7 +276,7 @@ const renderLineChart = () => { }, responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'top', horizontalAlign: 'center', floating: false, offsetY: 0 } } }] } - lineChart = new ApexCharts(container, options) + lineChart = new ApexCharts(container as HTMLElement, options as any) lineChart.render() } @@ -299,7 +299,7 @@ const renderPieChart = () => { const options = { series: taskStats.value.map(item => item.count), chart: { - type: 'donut', + type: 'donut' as const, height: 260, toolbar: { show: false }, background: 'transparent', @@ -389,7 +389,7 @@ const renderPieChart = () => { }, responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom' } } }] } - pieChart = new ApexCharts(container, options) + pieChart = new ApexCharts(container as HTMLElement, options as any) pieChart.render() }