2025-06-17 22:37:37 +08:00
|
|
|
|
<!-- 欢迎提示词 -->
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import { Typewriter } from 'vue-element-plus-x';
|
|
|
|
|
|
import { useTimeGreeting } from '@/hooks/useTimeGreeting';
|
|
|
|
|
|
import { useUserStore } from '@/stores';
|
|
|
|
|
|
|
|
|
|
|
|
const greeting = useTimeGreeting();
|
|
|
|
|
|
const userStore = useUserStore();
|
|
|
|
|
|
|
2025-08-31 01:37:36 +08:00
|
|
|
|
const username = computed(() => userStore.userInfo?.username ?? '意心Ai,一心只为打造更良心的Ai平台');
|
2025-06-17 22:37:37 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="welcome-text w-full flex flex-wrap items-center justify-center text-center text-lg font-semibold mb-32px mt-12px font-size-32px line-height-32px"
|
|
|
|
|
|
>
|
2025-06-20 00:06:10 +08:00
|
|
|
|
<!-- :content="`${greeting}好,${username}`"-->
|
2025-06-17 22:37:37 +08:00
|
|
|
|
<Typewriter
|
2025-06-20 00:06:10 +08:00
|
|
|
|
:content="`${username}`"
|
2025-06-17 22:37:37 +08:00
|
|
|
|
:typing="{
|
|
|
|
|
|
step: 2,
|
|
|
|
|
|
interval: 45,
|
|
|
|
|
|
}"
|
|
|
|
|
|
:is-fog="{
|
|
|
|
|
|
bgColor: '#fff',
|
|
|
|
|
|
}"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
:deep {
|
|
|
|
|
|
.typer-container {
|
|
|
|
|
|
overflow: initial;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|