<template>
  <div class="card h-100 dashboard">
    <div
      v-if="userInfo"
      class="factory-info flex h-100 flex-center"
    >
      <span class="title">{{ userInfo.factory.title }}</span>
      <span>欢迎您！</span>
    </div>
  </div>
</template>
<script setup lang="ts">
import useUserStore from '@/store/user'
const userInfo = useUserStore().user
</script>
<style lang="scss" scoped>
.factory-info {
  
  font-size: 24px;
  .title {
    margin-right: 10px;
    font-weight: 500;
    color: green;
  }
}
</style>
