Skip to content

Commit

Permalink
support only string component for vue
Browse files Browse the repository at this point in the history
  • Loading branch information
yaodingyd authored Oct 4, 2018
1 parent db9616b commit e52a3d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/vue/src/client/preview/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export default function render({
Vue.config.errorHandler = showException;

const component = story();

if (typeof component === 'string') {
component = { template: component };
}

if (!component) {
showError({
Expand Down

0 comments on commit e52a3d3

Please sign in to comment.