ERP-admin/build/admin/assets/useLockFn.553367ec.js

2 lines
708 B
JavaScript

import{u}from"./index.0c8416f0.js";import{d as l,b as f,o as s,c as a,a as i,T as p,a9 as _,u as d,S as h,r as m}from"./@vue.18505fe0.js";const x={class:"layout-footer"},k={class:"text-center p-2 text-xs text-tx-secondary max-w-[900px] mx-auto"},y=["href"],F=l({__name:"footer",setup(r){const e=u(),n=f(()=>e.config.copyright_config||[]);return(c,t)=>(s(),a("footer",x,[i("div",k,[(s(!0),a(p,null,_(d(n),o=>(s(),a("a",{class:"mx-1 hover:underline",href:o.value,target:"_blank",key:o.key},h(o.key),9,y))),128))])]))}});function S(r){const e=m(!1);return{isLock:e,lockFn:async(...c)=>{if(!e.value){e.value=!0;try{const t=await r(...c);return e.value=!1,t}catch(t){throw e.value=!1,t}}}}}export{F as _,S as u};