From 5f78af385050b2ade75cbfd66e019ebc6b40cd2b Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Mon, 30 Dec 2024 12:56:37 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4watch=E7=9A=84?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-cli-shared/src/watcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uni-cli-shared/src/watcher.ts b/packages/uni-cli-shared/src/watcher.ts index 07a8301f52c..641e67512fe 100644 --- a/packages/uni-cli-shared/src/watcher.ts +++ b/packages/uni-cli-shared/src/watcher.ts @@ -44,7 +44,7 @@ export class FileWatcher { onReady && onReady(this.watcher) // 等首次change完,触发完ready,在切换到真实的onChange this.onChange = onChange - }, watchOptions.readyTimeout || 300) + }, watchOptions.readyTimeout || 1000) // 300ms 在部分机器上仍有问题,调整成1000ms } this.onChange = checkReady