From 56cde4ad79bb24c4ecde102aa8b0f2b1fea7e058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 29 Dec 2024 14:44:47 +0800 Subject: [PATCH] fix: #669 --- src/webui/src/helper/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/src/helper/config.ts b/src/webui/src/helper/config.ts index 6f74e93e9..314362fa8 100644 --- a/src/webui/src/helper/config.ts +++ b/src/webui/src/helper/config.ts @@ -90,7 +90,7 @@ export class WebUiConfigWrapper { try { const configPath = resolve(webUiPathWrapper.configPath, './webui.json'); - if (!await fs.access(configPath, constants.R_OK | constants.W_OK).then(() => true).catch(() => false)) { + if (!await fs.access(configPath, constants.R_OK).then(() => true).catch(() => false)) { await fs.writeFile(configPath, JSON.stringify(defaultconfig, null, 4)); }