From 6623169e8a54fc45e3d7bc224fb1594c69171275 Mon Sep 17 00:00:00 2001 From: v6ole Date: Fri, 12 Jun 2026 11:24:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BF=AB=E9=80=9F=E6=89=AB=E6=8F=8F?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E8=B6=85=E6=97=B6=2030s=E2=86=92180s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 快速扫描需要 SSH 连接 30+ 台 OLT 并解析入库,后端实测 61 秒, Axios 默认 30 秒超时导致请求在前端被中断。 Co-Authored-By: Claude --- frontend/src/views/OltManage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/OltManage.vue b/frontend/src/views/OltManage.vue index 4c62fe1..590f1d2 100644 --- a/frontend/src/views/OltManage.vue +++ b/frontend/src/views/OltManage.vue @@ -938,7 +938,7 @@ const dismissNewDevice = async (id) => { const runQuickScan = async () => { quickScanning.value = true try { - const { data } = await request.post('/olt/quick-scan') + const { data } = await request.post('/olt/quick-scan', null, { timeout: 180000 }) quickScanResult.value = data quickScanVisible.value = true } catch (error) {