Merge pull request #427 from loneyclown/patch-1

修复热加载自定义css无法被正确加载。
This commit is contained in:
柠檬冲水 2024-06-15 00:26:33 +08:00 committed by GitHub
commit 2fe7c4d11c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ for (const flie of flies) {
router.get(url, ctx => {
ctx.body = Com.create(item.element, {
...item.options,
html_head: `${item?.html_head ?? ''}<link rel="stylesheet" href="/output.css">`,
html_head: `${item?.options?.html_head ?? ''}<link rel="stylesheet" href="/output.css">`,
file_create: false
})
})