From 48981e0cca05b3bd0b37190a7bcec9ca21c80ba6 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Sat, 10 Jan 2026 01:59:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8A=9F=E8=83=BD=E8=BF=9B=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/fishery/monitorHistory/index.vue | 5 ++++- vite.config.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/fishery/monitorHistory/index.vue b/src/views/fishery/monitorHistory/index.vue index 2fb71e2..1d85285 100644 --- a/src/views/fishery/monitorHistory/index.vue +++ b/src/views/fishery/monitorHistory/index.vue @@ -438,7 +438,8 @@ const updateChart = () => { data: xData, axisLabel: { interval: Math.floor(xData.length / 20), // 控制显示密度 - rotate: 0 + rotate: 20, // 倾斜45度 + fontSize: 11 } }, yAxis: { @@ -528,6 +529,8 @@ const handleDeviceSelect = (device: DeviceVO) => { selectedDevice.value = device; queryParams.value.serialNum = device.serialNum; deviceSelectVisible.value = false; + // 选择设备后自动查询 + getHistoryList(); }; /** 取消设备选择 */ diff --git a/vite.config.ts b/vite.config.ts index 4293364..21cc9d0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,8 +24,8 @@ export default defineConfig(({ mode, command }) => { open: true, proxy: { [env.VITE_APP_BASE_API]: { - target: 'http://localhost:8080', - // target: 'https://www.qdintc.com/fishery-api/', + // target: 'http://localhost:8080', + target: 'https://www.qdintc.com/fishery-api/', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')