<template>
  <div :class="[prefixCls, 'flex full relative']">
    <div :class="`${prefixCls}-content  pt-24`">

      <el-breadcrumb style="position: absolute; top: 80px;left: 120px" :separator-icon="ArrowRight">
        <el-breadcrumb-item class="text-2xl" :to="{ path: '/inform' }">动态资讯</el-breadcrumb-item>
        <el-breadcrumb-item class="text-2xl">动态详情</el-breadcrumb-item>
      </el-breadcrumb>
      <HtmlPreview :content="content" />
    </div>
  </div>
</template>

<script setup lang="ts">
definePageMeta({
  name:'动态详情',
  hidden: true,
  headerHost: false,
  parentPath: '/inform',
  // @ts-ignore
  path: '/inform/:id'
})
useHead({
  title:'动态详情'
})
import { ArrowRight } from '@element-plus/icons-vue'
useAppStore().setBannerTitle("动态详情")

const {prefixCls} = useDesign('mai-wrap');
const route = useRoute()
const content = ref('')
async function getData() {
  const data = await useApi().informationApi.getInformationDetail(route.params.id)
  console.log('data.data.info')
  content.value = data.data.info.content;
}
getData()
</script>

<style scoped></style>
