From 226bf18ddbb712fdc1e527d440d58c0a261b3450 Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 13 Jul 2026 15:50:47 +0800 Subject: [PATCH] =?UTF-8?q?perf=EF=BC=9A=E9=A6=96=E5=B1=8F=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E5=B1=8F=E8=94=BDvue-plugin-hiprint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 34fac376..5d4b088d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -58,9 +58,9 @@ const setupHiprintWhenIdle = (app: ReturnType) => { // 优先使用 requestIdleCallback,在浏览器空闲时加载;不支持则延迟兜底 const ric = (window as any).requestIdleCallback if (typeof ric === 'function') { - ric(load, { timeout: 5000 }) + ric(load, { timeout: 50000 }) } else { - setTimeout(load, 3000) + setTimeout(load, 30000) } }