Files
qhmes/web-dist/js/lock-DX-vQ0xH.js
2026-06-16 18:19:57 +08:00

2 lines
676 B
Java

var i=(t,e,s)=>new Promise((k,f)=>{var l=o=>{try{n(s.next(o))}catch(c){f(c)}},I=o=>{try{n(s.throw(o))}catch(c){f(c)}},n=o=>o.done?k(o.value):Promise.resolve(o.value).then(l,I);n((s=s.apply(t,e)).next())});import{am as L,an as r,ao as a}from"./index-X7Y8jykP.js";const p=L({id:"app-lock",state:()=>({lockInfo:r.getLocal(a)}),getters:{getLockInfo(){return this.lockInfo}},actions:{setLockInfo(t){this.lockInfo=Object.assign({},this.lockInfo,t),r.setLocal(a,this.lockInfo,!0)},resetLockInfo(){r.removeLocal(a,!0),this.lockInfo=null},unLock(t){return i(this,null,function*(){var e;if(((e=this.lockInfo)==null?void 0:e.pwd)===t)return this.resetLockInfo(),!0})}}});export{p as u};