打包前端

This commit is contained in:
liu
2026-09-16 23:53:05 +08:00
parent 751e8a196c
commit e4ba90bbbb
289 changed files with 946 additions and 1021 deletions
+1
View File
@@ -0,0 +1 @@
import{t as e}from"./request-DWqS4XYU.js";import{i as t,n,r,t as i}from"./middleware-BHa9fbqL.js";async function a(){return e({url:`/system/user/role`,method:`get`})}async function o(){return e({url:`/system/user/dept`,method:`get`})}async function s(t){return e({url:`/system/resetPassword`,method:`put`,data:t})}async function c(t){return e({url:`/system/login`,method:`post`,data:t})}async function l(){return e({url:`/system/logout`,method:`post`})}async function u(){return e({url:`/system/info`,method:`get`})}async function d(){return e({url:`/system/menu`,method:`get`})}async function f(t){return e({url:`/system/updateInfo`,method:`put`,data:t})}async function p(t){return e({url:`/system/updatePassword`,method:`put`,data:t})}async function m(){return e({url:`/system/loginRecord`})}var h={userinfo:{},access:[]},g=(e,t)=>({userId:()=>t().userinfo.id,setAccess:t=>e({access:t}),login:async e=>{let{data:t}=await c(e);localStorage.setItem(`token`,t.data.token)},logout:async()=>{await l(),localStorage.removeItem(`token`),e(h)},info:async()=>{let t=(await u()).data.data;e({userinfo:t.info,access:t.access})}}),_=t()(n(r((...e)=>({...h,...g(...e)}),{name:`auth-storage`,storage:i(()=>localStorage)}),{name:`XinAdmin-Auth`}));export{s as a,p as c,d as i,o as n,a as o,m as r,f as s,_ as t};