useDetail.33ec7a53.js 332 B

1
  1. import{i as m,m as f,a2 as e}from"./index.js";function y(l={}){const{query:c}=m(),{collapseLen:s,baseName:t}=l,a=f([]),o=e(()=>c.id),i=e(()=>u.value?`${t}\u8BE6\u60C5`:`\u521B\u5EFA${t}`),u=e(()=>!!o.value),n=r=>Array(r).fill(0).map((d,p)=>String(p+1));return s&&(a.value=n(s)),{id:o,title:i,isDetail:u,collapses:a}}export{y as u};