<template>
  <div class="logo">
    <router-link :to="{name:'dashboard'}">
      <img src="~@/assets/logo.png" style="width:60px" class="logo" alt="logo">
      <h1 v-if="showTitle">设备管理系统</h1>
    </router-link>
  </div>
</template>

<script>
import LogoSvg from '@/assets/logo.svg?inline'

export default {
  name: 'Logo',
  components: {
    LogoSvg
  },
  props: {

    showTitle: {
      type: Boolean,
      default: true,
      required: false
    }
  }
}
</script>
