Skip to content

Commit a7c1f3d

Browse files
author
elevatebart
committed
fix: await missing
1 parent 36cfe8a commit a7c1f3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Preview.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export default defineComponent({
198198
if (options.template) {
199199
renderedComponent.template = options.template;
200200
compileTemplateForEval(renderedComponent);
201-
calcOptions();
201+
await calcOptions();
202202
delete options.template;
203203
}
204204
@@ -243,6 +243,9 @@ export default defineComponent({
243243
options.__scopeId = `data-${this.scope}`;
244244
this.removeScopedStyle = addScopedStyle(style, this.scope);
245245
}
246+
247+
console.log({ options })
248+
246249
if (!options.render) {
247250
this.handleError({
248251
message:

0 commit comments

Comments
 (0)