From fb1daa0e211f8319476cf6f20fe6709a30c20889 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: Tue, 7 May 2024 22:45:36 +0800 Subject: [PATCH] fix --- src/webui/src/helper/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/src/helper/config.ts b/src/webui/src/helper/config.ts index a9701f7b..775c84e0 100644 --- a/src/webui/src/helper/config.ts +++ b/src/webui/src/helper/config.ts @@ -41,7 +41,7 @@ export interface WebUiConfigType { token: string; loginRate: number } -async function WebUIConfig(): Promise { +async function GetWebUIConfig(): Promise { try { let configPath = resolve(__dirname, "./config/webui.json"); let config: WebUiConfigType = { @@ -71,4 +71,4 @@ async function WebUIConfig(): Promise { } // 读取当前目录下名为 webui.json 的配置文件,如果不存在则创建初始化配置文件 -export const WebUiConfig = await WebUIConfig(); \ No newline at end of file +export const WebUiConfig = await GetWebUIConfig(); \ No newline at end of file