diff --git a/image/main.ts b/image/main.ts
index 87889a1..e0c3da2 100644
--- a/image/main.ts
+++ b/image/main.ts
@@ -39,10 +39,11 @@ for (const flie of flies) {
for (const item of routes) {
const url = `/${flie.name}${item.url}`
console.log(`http://127.0.0.1:${Port}${url}`)
+ const options = item?.options ?? {}
router.get(url, ctx => {
ctx.body = Com.create(item.element, {
- ...item.options,
- html_head: `${item?.options?.html_head ?? ''}`,
+ ...options,
+ html_head: `${options?.html_head ?? ''}`,
file_create: false
})
})