2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{g as x,E as v,a as h}from"./article.4329036a.js";import{a as b,r as y,b as g,o as r,e as i,f as t,w as o,h as n,t as c,u as k,i as C,j as a,k as E,l as B,m as I,E as w}from"./entry.539d3b49.js";import{_ as N}from"./_plugin-vue_export-helper.c27b6911.js";const V={class:"w-full min-h-[100%] main-container pt-5"},D={key:0,class:"mt-[20px] mb-[50px]"},M={class:"py-[20px] text-center text-[24px]"},T={class:"flex justify-center"},j={class:"mr-3 flex items-center text-gray-500 text-sm text-[#999]"},A={class:"ml-1"},H=["innerHTML"],L=b({__name:"detail",setup(R){const d=B(),e=y();g(()=>{u(d.query.id)});const u=l=>{x(l).then(_=>{e.value=_.data})};return(l,_)=>{const s=v,m=h,p=I("Clock"),f=w;return r(),i("div",V,[e.value?(r(),i("div",D,[t(m,{"separator-icon":k(C)},{default:o(()=>[t(s,{to:{path:"/"}},{default:o(()=>[n("首页")]),_:1}),t(s,{to:{path:"/article/list"}},{default:o(()=>[n("文章")]),_:1}),t(s,null,{default:o(()=>[n(c(e.value.category_name),1)]),_:1})]),_:1},8,["separator-icon"]),a("div",null,[a("p",M,c(e.value.title),1),a("div",T,[a("div",j,[t(f,null,{default:o(()=>[t(p)]),_:1}),a("span",A,"时间:"+c(e.value.create_time),1)])]),a("div",{class:"mt-[50px]",innerHTML:e.value.content},null,8,H)])])):E("",!0)])}}});const F=N(L,[["__scopeId","data-v-4ed84e51"]]);export{F as default};
|