import{a as i,_ as p,aH as g,q as h,aj as b,c as n,o as t,b as e,M as v,Q as a,J as w,R as y,a9 as f}from"./vue.D1BjjNmv.js";import{t as k}from"./index.Df8UJ10K.js";import{_ as L}from"./_plugin-vue_export-helper.DlAUqK2U.js";const x={class:"layout-navbars-breadcrumb-user-news"},C={class:"head-box"},B={class:"head-box-title"},M={class:"content-box"},N={class:"content-box-msg"},T=["innerHTML"],G={class:"content-box-time"},H=i({name:"layoutBreadcrumbUserNews"}),$=i({...H,setup(q){const o=p({newsList:[]}),d=g(),l=()=>{d.push("/messageCenter")},_=()=>{k({url:"/api/system/message_center/get_newest_msg/",method:"get",params:{}}).then(s=>{const{data:r}=s;o.newsList=[r]})};return h(()=>{_()}),(s,r)=>{const m=b("el-empty");return t(),n("div",x,[e("div",C,[e("div",B,a(s.$t("message.user.newTitle")),1)]),e("div",M,[o.newsList.length>0?(t(!0),n(y,{key:0},f(o.newsList,(c,u)=>(t(),n("div",{class:"content-box-item",key:u},[e("div",null,a(c.title),1),e("div",N,[e("div",{innerHTML:c.content},null,8,T)]),e("div",G,a(c.create_datetime),1)]))),128)):(t(),w(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:l},a(s.$t("message.user.newGo")),1)):v("",!0)])}}}),j=L($,[["__scopeId","data-v-55784aa3"]]);export{j as default};
