<template>
  <a-descriptions v-if="website">
    <a-descriptions-item label="租户ID">
      <a-tag>{{ website.appId }}</a-tag>
    </a-descriptions-item>
    <a-descriptions label="系统名称">
      <a-tag>{{ website?.appName }}</a-tag>
    </a-descriptions>
    <a-descriptions-item label="API">
      <a-tag>https://cms-api.websoft.top/api</a-tag>
    </a-descriptions-item>
    <a-descriptions-item label="域名" v-if="website?.domain">
      <a-tag>{{ website?.domain }}</a-tag>
    </a-descriptions-item>
    <a-descriptions-item label="后台管理">
      <a-tag>https://mp.websoft.top</a-tag>
    </a-descriptions-item>
    <a-descriptions-item label="超管账号">
      <a-tag>superAdmin</a-tag>
      <a-tag>vo0wowwj</a-tag>
    </a-descriptions-item>
    <a-descriptions-item label="到期时间">
      <a-tag>{{ website?.expirationTime }}</a-tag>
    </a-descriptions-item>
<!--    <a-descriptions-item label="开发">-->
<!--      {{ website }}-->
<!--    </a-descriptions-item>-->

  </a-descriptions>
</template>
<script lang="ts" setup>
import {computed, ref} from 'vue';
import {useUserStore} from "@/store/modules/user";
import {getSiteInfo} from "@/api/layout";
import {CmsWebsite} from "@/api/cms/cmsWebsite/model";

const userStore = useUserStore();// 当前用户信息
const loginUser = computed(() => userStore.info ?? {});
const website = ref<CmsWebsite>()

const reload = async () => {
  website.value = await getSiteInfo();
};

reload()
</script>
