From 5831898c4a8beea0fe062abcdf93964b263774ab 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, 10 Jun 2025 12:54:29 +0800 Subject: [PATCH] fix: #1058 --- src/webui/src/uploader/webui_font.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/src/uploader/webui_font.ts b/src/webui/src/uploader/webui_font.ts index 35136580..c2b267c9 100644 --- a/src/webui/src/uploader/webui_font.ts +++ b/src/webui/src/uploader/webui_font.ts @@ -1,13 +1,13 @@ import multer from 'multer'; -import { WebUiConfigWrapper } from '../helper/config'; import path from 'path'; import fs from 'fs'; import type { Request, Response } from 'express'; +import { WebUiConfig } from '@/webui'; export const webUIFontStorage = multer.diskStorage({ destination: (_, __, cb) => { try { - const fontsPath = path.dirname(WebUiConfigWrapper.GetWebUIFontPath()); + const fontsPath = path.dirname(WebUiConfig.GetWebUIFontPath()); // 确保字体目录存在 fs.mkdirSync(fontsPath, { recursive: true }); cb(null, fontsPath);