import{c as s,o as i,a as d,b as r,t as o,e as l,w as u,p as _,d as p,f as m}from"./vendor-DNlZeerj.js";import{_ as x}from"./index-A51NtU_x.js";import"./deps-nX7XHeZf.js";const f={name:"ErrorPage",setup(){const a=_(),e=s(()=>a.params.code||"404"),n=s(()=>{switch(e.value){case"403":return"访问被拒绝";case"404":return"页面未找到";case"500":return"服务器错误";default:return"未知错误"}}),t=s(()=>{switch(e.value){case"403":return"抱歉，您没有权限访问此页面";case"404":return"抱歉，您访问的页面不存在";case"500":return"抱歉，服务器出现了问题";default:return"发生了一些错误，请稍后再试"}});return{errorCode:e,errorMessage:n,errorDescription:t}}},g={class:"min-h-screen flex items-center justify-center bg-gray-100"},h={class:"text-center"},b={class:"mb-8"},v={class:"text-9xl font-bold text-gray-800"},y={class:"text-2xl text-gray-600 mt-4"},w={class:"text-gray-500 mb-8"};function k(a,e,n,t,C,B){const c=p("router-link");return i(),d("div",g,[r("div",h,[r("div",b,[r("h1",v,o(t.errorCode),1),r("p",y,o(t.errorMessage),1)]),r("p",w,o(t.errorDescription),1),l(c,{to:"/",class:"bg-blue-500 text-white px-6 py-3 rounded-lg hover:bg-blue-600 transition"},{default:u(()=>e[0]||(e[0]=[m(" 返回首页 ")])),_:1})])])}const V=x(f,[["render",k]]);export{V as default};
