2024-03-16 17:53:54 +08:00

27 lines
521 B
Vue

<script setup lang="ts">
import { useAppStore } from '@/store'
import { useAppInfo, useAppRouter } from '@/hooks'
const { name } = useAppInfo()
const { toRoot } = useAppRouter()
const appStore = useAppStore()
</script>
<template>
<div
class="h-60px text-2xl flex-center overflow-hidden cursor-pointer"
@click="toRoot"
>
<SvgIcon
name="logo"
:size="28"
/>
<span
v-show="!appStore.collapsed"
class="mx-3"
>{{ name }}</span>
</div>
</template>
<style scoped></style>