增加填报日历功能

This commit is contained in:
qwq
2026-06-04 14:25:39 +08:00
parent c323849436
commit 4a8f530921
14455 changed files with 1384 additions and 2613050 deletions
+1
View File
@@ -0,0 +1 @@
import{m as n,h as r}from"./index-B7ewtAvV.js";const m=n("user",()=>{const o=r(JSON.parse(localStorage.getItem("user")||"null")),t=r(localStorage.getItem("token")||"");function s(e,l){t.value=e,o.value=l,localStorage.setItem("token",e),localStorage.setItem("user",JSON.stringify(l))}function a(){t.value="",o.value=null,localStorage.removeItem("token"),localStorage.removeItem("user")}return{user:o,token:t,setLogin:s,logout:a,isLoggedIn:()=>!!t.value,getRole:()=>{var e;return((e=o.value)==null?void 0:e.role)||""}}});export{m as u};