diff --git a/server/index.js b/server/index.js index d5fc3f2..5cb3ba4 100644 --- a/server/index.js +++ b/server/index.js @@ -3,7 +3,7 @@ import express from 'express' const app = express() -const PORT = 8080 // 可根据需要更改端口号 +const PORT = 8088 // 可根据需要更改端口号 app.listen(PORT, () => { console.log(`服务器已启动,正在监听端口 ${PORT}`) }) diff --git a/src/components/seal/DashboardChart.vue b/src/components/seal/DashboardChart.vue index acd84cd..2103575 100644 --- a/src/components/seal/DashboardChart.vue +++ b/src/components/seal/DashboardChart.vue @@ -27,7 +27,7 @@ const initChart = () => { if (!chartRef.value) { return } - myChart = echarts.init(chartRef.value) + myChart = echarts.init(chartRef.value, null, { renderer: 'svg' }) const option = { tooltip: { formatter: '{a}
{b} : {c}%', @@ -70,7 +70,7 @@ onUnmounted(() => {