v-show only if array is not empty code example
Example: vue check if list is empty
<template v-if="!nodes || !nodes.length>
Nothing To Show
</template>
<template v-else v-for="node in nodes">
{{ node }}
</template>
<template v-if="!nodes || !nodes.length>
Nothing To Show
</template>
<template v-else v-for="node in nodes">
{{ node }}
</template>