1 |
- import{u as _}from"./usePermission.8064505c.js";import{a as u,C as p,b as i,c as l,e as d,m as a,f as o,h,x as m,Q as f,R as x,_ as g,aJ as v}from"./index.4d061c66.js";const c=e=>(f("data-v-6be1f445"),e=e(),x(),e),y={class:"flex flex-col justify-center page-container"},B=c(()=>a("div",{class:"text-center"},null,-1)),b={class:"text-center"},C=c(()=>a("h1",{class:"text-base text-gray-500"},"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762",-1)),A=u({__name:"no-auth",setup(e){const t=p();function s(){t.push("/")}return(n,P)=>{const r=i("el-button");return l(),d("div",y,[B,a("div",b,[C,o(r,{type:"primary",onClick:s},{default:h(()=>[m("\u56DE\u5230\u9996\u9875")]),_:1})])])}}});const E=g(A,[["__scopeId","data-v-6be1f445"]]);const N=u({name:"PageAuth",props:{pageName:{type:String},margin:{type:Boolean,default:!0}},setup(e,{slots:t}){const{permissions:s,hasPermissionWithCode:n}=_(e.pageName);return v("Auth",{permissions:s}),()=>n("001")?o("div",null,[t.default&&t.default()]):o(E,null,null)}}),S=N;export{S as P};
|