Skip to content

Commit 6c44336

Browse files
committed
fix(Preview): fix type warn
1 parent fdd3afd commit 6c44336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/output/Preview.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ async function updatePreview() {
278278
279279
if (sandbox.contentWindow?.document.body && props.bodyStyle) {
280280
for (const key in props.bodyStyle) {
281-
sandbox.contentWindow.document.body.style[key] = props.bodyStyle[key]
281+
sandbox.contentWindow.document.body.style[key] = props.bodyStyle[key]!
282282
}
283283
}
284284
@@ -288,7 +288,7 @@ async function updatePreview() {
288288
) as HTMLElement
289289
if (appEl) {
290290
for (const key in props.appStyle) {
291-
appEl.style[key] = props.appStyle[key]
291+
appEl.style[key] = props.appStyle[key]!
292292
}
293293
}
294294
}

0 commit comments

Comments
 (0)