Skip to content

Commit

Permalink
fix: resolve flash issue using render fucntion instead of template (#541
Browse files Browse the repository at this point in the history
)
  • Loading branch information
farnabaz authored Jul 9, 2021
1 parent 84120f8 commit d74f06e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/app/pages/_.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<template>
<Component :is="page.template" :key="page.template" :page="page" />
</template>

<script>
import Vue from 'vue'
import { withoutTrailingSlash } from 'ufo'
Expand Down Expand Up @@ -144,6 +140,14 @@ export default defineComponent({
}
})
}
},
render(h) {
return h(this.page.template, {
props: {
page: this.page
}
})
}
})
</script>

0 comments on commit d74f06e

Please sign in to comment.