Skip to content

Commit

Permalink
fix: execute组件错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Jun 21, 2023
1 parent 0fceff1 commit f489715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ export namespace Component {
}))
.component('execute', defineComponent({
async render(attrs, children) {
return this.session.execute(await this.session.render(children,this))
const template=(await this.session.render(children,this)).join('')
return this.session.execute(template)
}
}))
.component('forward',defineComponent({
Expand Down

0 comments on commit f489715

Please sign in to comment.