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