Vben
authored
|
1
2
|
<template>
<div class="lg:flex">
|
|
3
|
<Avatar :src="userinfo.avatar || headerImg" :size="72" class="!mx-auto !block" />
|
Vben
authored
|
4
|
<div class="md:ml-6 flex flex-col justify-center md:mt-0 mt-2">
|
|
5
|
<h1 class="md:text-lg text-md">早安, {{ userinfo.realName }}, 开始您一天的工作吧!</h1>
|
Vben
authored
|
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<span class="text-secondary"> 今日晴,20℃ - 32℃! </span>
</div>
<div class="flex flex-1 justify-end md:mt-0 mt-4">
<div class="flex flex-col justify-center text-right">
<span class="text-secondary"> 待办 </span>
<span class="text-2xl">2/10</span>
</div>
<div class="flex flex-col justify-center text-right md:mx-16 mx-12">
<span class="text-secondary"> 项目 </span>
<span class="text-2xl">8</span>
</div>
<div class="flex flex-col justify-center text-right md:mr-10 mr-4">
<span class="text-secondary"> 团队 </span>
<span class="text-2xl">300</span>
</div>
</div>
</div>
</template>
|
vben
authored
|
25
26
|
<script lang="ts" setup>
import { computed } from 'vue';
|
Vben
authored
|
27
|
import { Avatar } from 'ant-design-vue';
|
|
28
|
import { useUserStore } from '/@/store/modules/user';
|
Vben
authored
|
29
|
import headerImg from '/@/assets/images/header.jpg';
|
vben
authored
|
30
31
32
|
const userStore = useUserStore();
const userinfo = computed(() => userStore.getUserInfo);
|
Vben
authored
|
33
|
</script>
|