mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
28 lines
579 B
Vue
28 lines
579 B
Vue
<script setup lang="ts">
|
|
import { $t } from '@/locales';
|
|
|
|
defineOptions({
|
|
name: 'GlobalLogo'
|
|
});
|
|
|
|
interface Props {
|
|
/** Whether to show the title */
|
|
showTitle?: boolean;
|
|
}
|
|
|
|
withDefaults(defineProps<Props>(), {
|
|
showTitle: true
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<RouterLink to="/" class="w-full flex-center nowrap-hidden">
|
|
<SystemLogo class="text-30px text-primary" />
|
|
<h2 v-show="showTitle" class="pl-12px text-16px text-primary font-bold transition duration-300 ease-in-out">
|
|
{{ $t('system.title') }}
|
|
</h2>
|
|
</RouterLink>
|
|
</template>
|
|
|
|
<style scoped></style>
|