From 98581c27271e4416d28fdc878bbb50bd1bc9cf4f Mon Sep 17 00:00:00 2001 From: Horis <8674809+821938089@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/web/src/main.ts b/modules/web/src/main.ts index ddcd4f0fb..52a36f571 100644 --- a/modules/web/src/main.ts +++ b/modules/web/src/main.ts @@ -16,3 +16,7 @@ watch( } }, ) + +window.addEventListener('vite:preloadError', event => { + event.preventDefault() +})