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);