<template>
  <div class="logo">
    <router-link :to="{path:'/'}">
       <img src="@/assets/logo.png" alt="logo" style="width: 30px;height:30px">
      <h1 v-if="showTitle">{{ title }}</h1>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "Logo",
  props: {
    title: {
      type: String,
      default: '服务预约管理',
      required: false
    },
    showTitle: {
      type: Boolean,
      default: true,
      required: false
    }
  }
}
</script>