Rodney Chen
2024-07-06 e34d8f9133f196f17667d8051a6a9d080b0385fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<template>
  <div class="lg:flex">
    <!-- !mx-auto -->
    <Avatar :src="userinfo.avatar || headerImg" :size="82" :shape="square" class="!block"/>
    <div class="md:ml-12 flex flex-col justify-start md:mt-0 mt-2">
      <h1 class="md:text-lg text-md">早安, {{ userinfo.realName }}, 开始您一天的工作吧!</h1>
      <span class="text-secondary"> 今日晴,20℃ - 32℃! </span>
    </div>
  </div>
</template>
<script lang="ts" setup>
  import { computed } from 'vue';
  import { Avatar } from 'ant-design-vue';
  import { useUserStore } from '/@/store/modules/user';
  import headerImg from '/@/assets/images/header.jpg';
  // import headerImg from '/@/assets/images/title.jpg';
 
  const userStore = useUserStore();
  const userinfo = computed(() => userStore.getUserInfo);
  const square = "square";
</script>