import{d as u,Z as p,az as g,j as h,ai as v,o as t,c as n,a as e,T as a,F as w,a8 as b,M as f,R as y}from"./vue.adf17aba.js";import{r as k}from"./index.ad3efb29.js";import{_ as L}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const x={class:"layout-navbars-breadcrumb-user-news"},C={class:"head-box"},M={class:"head-box-title"},N={class:"content-box"},T={class:"content-box-msg"},B=["innerHTML"],G={class:"content-box-time"},$=u({__name:"userNews",setup(D){const o=p({newsList:[]}),i=g(),_=()=>{i.push("/messageCenter")},d=()=>{k({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",M,a(s.$t("message.user.newTitle")),1)]),e("div",N,[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",T,[e("div",{innerHTML:r.content},null,8,B)]),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=L($,[["__scopeId","data-v-f0f3eb95"]]);export{q as default};
