import{a as l}from"./401-bcb900b6.js";import{i as u}from"./index-065f7c61.js";import{a2 as d,r as a,e as f,u as m,o as _,c as p,a as e,t as h,f as g}from"./index-25eb6331.js";import{b as n}from"./route-block-83d24a4e.js";const b={class:"error-body"},k={class:"error-desc"},v=e("img",{src:l,class:"err-cover",alt:"unauthorized"},null,-1),y=d({__name:"401",setup(R){const o=a(null),r=a("401");f(()=>{let s=new URLSearchParams(window.location.search),t=s.get("message")||"无权访问!";r.value=s.get("code")||"401",u(o.value,{showCursor:!1,disableBackTyping:!0,strings:[t]})});const c=m(),i=()=>c.push("/");return(s,t)=>(_(),p("div",b,[e("div",k,[e("div",{ref:"codeRef",class:"err-code"},h(g(r)),513),e("div",{ref_key:"contentRef",ref:o,class:"err-content"},null,512),e("button",{class:"error-btn",onClick:i}," 👉 返回首页 ")]),v]))}});typeof n=="function"&&n(y);export{y as default};
