<template>
    <div class="logo">
        <router-link :to="{ name: 'index' }">
            <!-- <SvgIcon name="logo" /> -->
            <img src="/src/assets/dhc.gif" alt="logo" />
            <h1 v-if="showTitle">{{ title }}</h1>
        </router-link>
    </div>
</template>

<script lang="ts" setup name="Logo">
import SvgIcon from '@/components/SvgIcon/index.vue'

const props = defineProps({
    title: {
        type: String,
        default: '总账管理系统',
        required: false,
    },
    showTitle: {
        type: Boolean,
        default: true,
        required: false,
    },
})
</script>
