import{_ as a,w as e,f as s,h as t}from"./index-4c745ab9.js";import{g as l}from"./index-a05e89f0.js";import{l as n,q as i,o as u,a as c,m as o,f as r,u as d,F as v,i as m,e as h,h as p,g as f,t as _,a2 as k,a3 as y}from"./vendor-edc0678f.js";const g={key:0},x={class:"title"},j=(a=>(k("data-v-b43c479f"),a=a(),y(),a))(()=>f("div",{class:"title_top"},null,-1)),L={key:0},b=["onClick"],q=a({__name:"index",setup(a){const k=n([]),y=n(!1);return i(async()=>{try{const a=await l();200===a.code&&(k.value=a.data,0===k.value.length?y.value=!0:y.value=!1)}catch(a){}}),(a,l)=>{const n=e,i=t;return u(),c(v,null,[o(" help_center "),r(n,{currentName:d(s)("help_center")},null,8,["currentName"]),k.value.length>0?(u(),c("div",g,[(u(!0),c(v,null,m(k.value,(e,s)=>(u(),c("div",{class:"itemList",key:s},[f("div",x,[j,f("div",null,_(e.title),1)]),e.infoList.length>0?(u(),c("div",L,[(u(!0),c(v,null,m(e.infoList,(e,s)=>(u(),c("div",{class:"item",key:s,onClick:s=>a.$router.push("/helpDetail/".concat(e.id))},_(e.question),9,b))),128))])):h("",!0)]))),128))])):h("",!0),0===k.value.length&&y.value?(u(),p(i,{key:1})):h("",!0)],64)}}},[["__scopeId","data-v-b43c479f"]]);export{q as default};
