Remove extraneous div

Vue 2.x allows multiple root elements when only one would be rendered. Using `v-if` with `v-else` ensures that only one component will get rendered.
This commit is contained in:
Matthew Pietz 2017-02-09 00:25:04 -08:00 committed by GitHub
parent 13284fbf8a
commit f1386c3a5e

View File

@ -1,8 +1,6 @@
<template>
<div>
<nuxt-child v-if="!nuxt.err"></nuxt-child>
<nuxt-error v-if="nuxt.err" :error="nuxt.err"></nuxt-error>
</div>
<nuxt-child v-if="!nuxt.err"></nuxt-child>
<nuxt-error v-else :error="nuxt.err"></nuxt-error>
</template>
<script>