<template>
  <img  :src="setImage()" alt="" />
</template>

<script>
export default {
  components: {  },
  props: {
    source: String,
    type: String,
  },
  methods: {
    setImage() {
      if(this.source){
          return this.source;
      }
      if(this.type == 'music'){
        return '/image/modalimg1.jpg';
      }
      return '/image/card4.jpg';
    },
  },
};
</script>
