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