<template>
  <div class="page-card">
    <h3>通知中心</h3>
    <el-table :data="items" stripe>
      <el-table-column prop="title" label="标题" />
      <el-table-column prop="content" label="内容" />
      <el-table-column prop="createdAt" label="时间" />
    </el-table>
  </div>
</template>

<script>
import { familyNoticeList } from "../../api";

export default {
  data() {
    return { items: [] };
  },
  async created() {
    try {
      const res = await familyNoticeList();
      this.items = res.data.data;
    } catch (e) {
      this.$message.error(e.message || "加载失败");
    }
  }
};
</script>

