From c4d0210b573bad224d638e0712d1f857587874c9 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 12 Nov 2023 19:41:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=AF=E5=8A=A8=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/dev.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/dev.ts b/script/dev.ts index 86a08e4..364c529 100644 --- a/script/dev.ts +++ b/script/dev.ts @@ -584,9 +584,9 @@ async function startWsServer(http: Server) { async function ensureConfig() { try { - fs.readFile(resolvePath('_server/config.json')); + await fs.readFile(resolvePath('_server/config.json')); } catch { - fs.writeFile(resolvePath('_server/config.json'), '{}', 'utf-8'); + await fs.writeFile(resolvePath('_server/config.json'), '{}', 'utf-8'); } }