2 lines
800 B
JavaScript
2 lines
800 B
JavaScript
import{i as a,c as e,o as s,w as n,a as o,F as t,z as l,u as r,y as d,A as i,v as u,t as c,d as h,x as p}from"./vendor-CF1QNs3T.js";import{L as m}from"./index-LJvZJS40.js";const f={__name:"horizonMenu",setup(f){const x=a(),_=m.getCache("resource");console.log("analyse route info:",_);return(a,m)=>{const f=i,v=d,g=p;return s(),e(g,{mode:"horizontal"},{default:n((()=>[(s(!0),o(t,null,l(r(_).children,(a=>(s(),e(v,{index:a.path},{title:n((()=>[h("span",null,c(a.meta.desc),1)])),default:n((()=>[(s(!0),o(t,null,l(a.children,(a=>(s(),e(f,{key:a.path,index:a.path,onClick:e=>{return s=a,console.log("点击资源:",s),void x.push({path:s.path});var s}},{default:n((()=>[u(c(a.meta.desc),1)])),_:2},1032,["index","onClick"])))),128))])),_:2},1032,["index"])))),256))])),_:1})}}};export{f as default};
|