feat(webui): theme

This commit is contained in:
bietiaop committed 2025-02-08 21:01:29 +08:00
1 parent 309d299d5d
commit 4103ef2815
11 files changed
+532 -29

No files matched your search

+2 -2
View File
@@ -73,9 +73,9 @@ export async function InitWebUi(logger: LogWrapper, pathWrapper: NapCatPathWrapp
// 如果是webui字体文件,挂载字体文件
app.use('/webui/fonts/AaCute.woff', async (_req, res, next) => {
const isFontExist = await WebUiConfigWrapper.CheckWebUIFontExist();
const isFontExist = await WebUiConfig.CheckWebUIFontExist();
if (isFontExist) {
res.sendFile(WebUiConfigWrapper.GetWebUIFontPath());
res.sendFile(WebUiConfig.GetWebUIFontPath());
} else {
next();
}