import{d as i,Q as p,al as g,j as b,a8 as h,o as t,c as n,a as e,L as a,F as v,$ as w,E as y,J as L}from"./vue.95e072e2.js";import{r as f}from"./index.8a64ecdf.js";import{_ as k}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.58179425.js";import"./echarts.72dc8373.js";const x={class:"layout-navbars-breadcrumb-user-news"},C={class:"head-box"},B={class:"head-box-title"},N={class:"content-box"},M={class:"content-box-msg"},T=["innerHTML"],$={class:"content-box-time"},G=i({name:"layoutBreadcrumbUserNews"}),D=i({...G,setup(E){const o=p({newsList:[]}),_=g(),d=()=>{_.push("/messageCenter")},l=()=>{f({url:"/api/system/message_center/get_newest_msg/",method:"get",params:{}}).then(s=>{const{data:c}=s;o.newsList=[c]})};return b(()=>{l()}),(s,c)=>{const m=h("el-empty");return t(),n("div",x,[e("div",C,[e("div",B,a(s.$t("message.user.newTitle")),1)]),e("div",N,[o.newsList.length>0?(t(!0),n(v,{key:0},w(o.newsList,(r,u)=>(t(),n("div",{class:"content-box-item",key:u},[e("div",null,a(r.title),1),e("div",M,[e("div",{innerHTML:r.content},null,8,T)]),e("div",$,a(r.create_datetime),1)]))),128)):(t(),y(m,{key:1,description:s.$t("message.user.newDesc")},null,8,["description"]))]),o.newsList.length>0?(t(),n("div",{key:0,class:"foot-box",onClick:d},a(s.$t("message.user.newGo")),1)):L("",!0)])}}});const I=k(D,[["__scopeId","data-v-eeb5a33b"]]);export{I as default};
