Edit in JSFiddle

<div id="app">
 <p v-if="type === 1">type: 1</p>
 <p v-else-if="type === 2">type: 2</p>
 <p v-else>type: 1, 2以外</p>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
var app = new Vue({
  el: '#app',
  data: {
    type: 1
  }
})