PageSourceSearch

https://aipan-netdisk-search-eight-omega.vercel.app/_nuxt/icVdy5DE.js

js aipan-netdisk-search-eight-omega.vercel.app collected 2026-10-03 06:14:28 UTC 2,561 bytes, 1 lines download raw bytes

1import{_ as S}from"./Bo4TVuGU.js";import{E as T}from"./Dtk879yS.js";import{E as N,a as V}from"./BRsF9mW_.js";import{E as j}from"./C54LMx0Y.js";import"./GPXoNIsB.js";import"./CGCPpp9e.js";import{j as D,o as I,c as x,a as r,b as n,w as a,u as s,i as b,m as R,d as C,r as m,e as k,f as p}from"./HqzkdBYW.js";import"./DS1_CFFN.js";import"./-YIGnWXp.js";import"./DFrO_NKE.js";import"./CwXuR17U.js";import"./B9XX1T3P.js";import"./BrBmv5wE.js";import"./NTRVuQS5.js";import"./CHsANplb.js";import"./BB_Ol6Sd.js";import"./BdKSKrSK.js";import"./vxklxbEd.js";const U={class:"p-10 max-w-[1240px] mx-auto"},q={class:"text-xl text-bold space-x-2"},A={class:"mt-6 grid grid-cols-4 gap-4"},G={key:0,class:"mt-6"},L={class:"mt-6 flex items-center justify-center"},rt={__name:"index",setup(M){const _=D(),d=m([]),l=m(1),i=m(10),f=m(0),u=async()=>{const e=await $fetch("/api/admin/blog/posts/get",{method:"GET",query:{page:l.value,pageSize:i.value},headers:{authorization:"Bearer "+C("token").value}});d.value=e.posts,f.value=e.totalCount},E=e=>{l.value=e,u()},y=e=>{i.value=e,u()},h=e=>{_.push(`/admin/blog/${e.id}`)},z=e=>{$fetch(`/api/admin/blog/posts/${e.id}`,{method:"DELETE",headers:{authorization:"Bearer "+C("token").value}}),u()},$=()=>{_.push("/admin/blog/new")};return I(()=>{u()}),(e,t)=>{const c=S,g=T,v=V,w=N,B=j;return k(),x("div",U,[r("h1",q,[n(c,{to:"/admin/dashboard"},{default:a(()=>[...t[3]||(t[3]=[p("后台管理面板",-1)])]),_:1}),t[5]||(t[5]=r("span",null,"/",-1)),n(c,{to:"/admin/blog"},{default:a(()=>[...t[4]||(t[4]=[p("博客管理",-1)])]),_:1})]),t[9]||(t[9]=r("div",{class:"h-[1px] bg-slate-300 mt-6"},null,-1)),r("div",A,[n(g,{type:"primary",onClick:t[0]||(t[0]=o=>$())},{default:a(()=>[...t[6]||(t[6]=[p("添加文章",-1)])]),_:1})]),s(d)&&s(d).length?(k(),x("div",G,[n(w,{data:s(d)},{default:a(()=>[n(v,{prop:"title",label:"标题"}),n(v,{label:"操作",width:"200"},{default:a(o=>[n(g,{type:"primary",onClick:P=>h(o.row,o.$index)},{default:a(()=>[...t[7]||(t[7]=[p("编辑",-1)])]),_:1},8,["onClick"]),n(g,{type:"danger",onClick:P=>z(o.row,o.$index)},{default:a(()=>[...t[8]||(t[8]=[p("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),r("div",L,[n(B,{"current-page":s(l),"onUpdate:currentPage":t[1]||(t[1]=o=>b(l)?l.value=o:null),"page-size":s(i),"onUpdate:pageSize":t[2]||(t[2]=o=>b(i)?i.value=o:null),"page-sizes":[100,200,300,400],background:"",layout:"total, sizes, prev, pager, next, jumper",total:s(f),onSizeChange:y,onCurrentChange:E},null,8,["current-page","page-size","total"])])])):R("",!0)])}}};export{rt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.