ray-template/js/Error404-DZV4LFI2.js

1 line
838 B
JavaScript

import{Cn as e,Sn as t,jn as n,wn as r}from"./Card-DevreQc-.js";import{$ as i,ct as a,i as o,lt as s,p as c}from"./index-BL9Gs7_D.js";import{m as l,u}from"./Switch-B12aw2Qc.js";var d=r({name:`PageResult`,props:{...s},setup(){let{replace:e}=i();return{goBack:()=>{let{getAppRootRoute:t}=o();t.value?.path&&e(t.value.path)}}},render(){let{goBack:r}=this;return e(`div`,{class:`error-page`},[e(a,n(this.$props,{status:`500`,title:`404 资源不存在`,description:`小调皮你走错地方了`}),{...this.$slots,footer:()=>e(u,{align:`center`,justify:`center`},{default:()=>[e(l,{onClick:c.bind(this,!0)},{default:()=>[t(`返回首页`)]}),e(l,{type:`primary`,onClick:r.bind(this)},{default:()=>[t(`返回上一页面`)]})]})})])}}),f=r({name:`ErrorPage404`,setup(){return{}},render(){return e(d,{status:`404`},null)}});export{f as default};