2024-09-24 09:21:34 +00:00
if ( "undefined" == typeof Promise || Promise . prototype . finally || ( Promise . prototype . finally = function ( e ) { const t = this . constructor ; return this . then ( ( a => t . resolve ( e ( ) ) . then ( ( ( ) => a ) ) ) , ( a => t . resolve ( e ( ) ) . then ( ( ( ) => { throw a } ) ) ) ) } ) , "undefined" != typeof uni && uni && uni . requireGlobal ) { const e = uni . requireGlobal ( ) ; ArrayBuffer = e . ArrayBuffer , Int8Array = e . Int8Array , Uint8Array = e . Uint8Array , Uint8ClampedArray = e . Uint8ClampedArray , Int16Array = e . Int16Array , Uint16Array = e . Uint16Array , Int32Array = e . Int32Array , Uint32Array = e . Uint32Array , Float32Array = e . Float32Array , Float64Array = e . Float64Array , BigInt64Array = e . BigInt64Array , BigUint64Array = e . BigUint64Array } uni . restoreGlobal && uni . restoreGlobal ( Vue , weex , plus , setTimeout , clearTimeout , setInterval , clearInterval ) , function ( e ) { "use strict" ; function t ( e , t , ... a ) { uni . _ _log _ _ ? uni . _ _log _ _ ( e , t , ... a ) : console [ e ] . apply ( console , [ ... a , t ] ) } function a ( e , t ) { return "string" == typeof e ? t : e } const n = t => ( a , n = e . getCurrentInstance ( ) ) => { ! e . isInSSRComponentSetup && e . injectHook ( t , a , n ) } , i = n ( "onShow" ) , s = n ( "onLaunch" ) , o = n ( "onLoad" ) , r = n ( "onReachBottom" ) , l = n ( "onPullDownRefresh" ) ; let c = ! 1 ; function d ( e ) { if ( c ) return ; if ( uni . getStorageSync ( "logintime" ) && uni . getStorageSync ( "logintime" ) + 36e5 <= Date . now ( ) ) return c = ! 0 , t ( "log" , "at utils/http.js:11" , "token超时" ) , uni . removeStorageSync ( "logintime" ) , uni . navigateTo ( { url : "/pages/login/login" } ) , void ( c = ! 1 ) ; e . url = "https://36.112.48.190/jeecg-boot" + e . url ; let a = uni . getStorageSync ( "token" ) || "" ; return e . header = { "content-type" : "application/json;charset=utf-8" , "X-Access-Token" : a } , new Promise ( ( function ( t , a ) { uni . request ( e ) . then ( ( e => { if ( wx . hideLoading ( ) , e [ 0 ] ) uni . showToast ( { title : "数据获取失败" , icon : "none" , duration : 1500 } ) , t ( ! 1 ) ; else { let a = e . data ; if ( t ( a ) , c ) return ; 500 == a . code && uni . showToast ( { title : a . message , icon : "none" , duration : 1500 } ) , 510 == a . code && ( c = ! 0 , uni . showToast ( { title : a . message , icon : "none" , duration : 1500 } ) , uni . removeStorageSync ( "token" ) , uni . removeStorageSync ( "user" ) , uni . removeStorageSync ( "role" ) , uni . navigateTo ( { url : "/pages/login/login" } ) , uni . removeStorageSync ( "logintime" ) , c = ! 1 ) } } ) ) . catch ( ( e => { uni . hideLoading ( ) , a ( e ) } ) ) } ) ) } function u ( e ) { return d ( { url : "/sys/permission/getUserPermissionByToken" , method : "get" , data : e } ) } var h = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : { } ; function m ( e ) { return e && e . _ _esModule && Object . prototype . hasOwnProperty . call ( e , "default" ) ? e . default : e } var p , f , g = { exports : { } } ;
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */ p = g , f = g . exports , function ( e ) { var t = f , a = p && p . exports == t && p , n = "object" == typeof h && h ; n . global !== n && n . window !== n || ( e = n ) ; var i = function ( e ) { this . message = e } ; ( i . prototype = new Error ) . name = "InvalidCharacterError" ; var s = function ( e ) { throw new i ( e ) } , o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , r = /[\t\n\f\r ]/g , l = { encode : function ( e ) { e = String ( e ) , /[^\0-\xFF]/ . test ( e ) && s ( "The string to be encoded contains characters outside of the Latin1 range." ) ; for ( var t , a , n , i , r = e . length % 3 , l = "" , c = - 1 , d = e . length - r ; ++ c < d ; ) t = e . charCodeAt ( c ) << 16 , a = e . charCodeAt ( ++ c ) << 8 , n = e . charCodeAt ( ++ c ) , l += o . charAt ( ( i = t + a + n ) >> 18 & 63 ) + o . charAt ( i >> 12 & 63 ) + o . charAt ( i >> 6 & 63 ) + o . charAt ( 63 & i ) ; return 2 == r ? ( t = e . charCodeAt ( c ) << 8 , a = e . charCodeAt ( ++ c ) , l += o . charAt ( ( i = t + a ) >> 10 ) + o . charAt ( i >> 4 & 63 ) + o . charAt ( i << 2 & 63 ) + "=" ) : 1 == r && ( i = e . charCodeAt ( c ) , l += o . charAt ( i >> 2 ) + o . charAt ( i << 4 & 63 ) + "==" ) , l } , decode : function ( e ) { var t = ( e = String ( e ) . replace ( r , "" ) ) . length ; t % 4 == 0 && ( t = ( e = e . replace ( /==?$/ , "" ) ) . length ) , ( t % 4 == 1 || /[^+a-zA-Z0-9/]/ . test ( e ) ) && s ( "Invalid character: the string to be decoded is not correctly encoded." ) ; for ( var a , n , i = 0 , l = "" , c = - 1 ; ++ c < t ; ) n = o . indexOf ( e . charAt ( c ) ) , a = i % 4 ? 64 * a + n : n , i ++ % 4 && ( l += String . fromCharCode ( 255 & a >> ( - 2 * i & 6 ) ) ) ; return l } , version : "1.0.0" } ; if ( t && ! t . nodeType ) if ( a ) a . exports = l ; else for ( var c in l ) l . hasOwnProperty ( c ) && ( t [ c ] = l [ c ] ) ; else e . base64 = l } ( h ) ; const v = m ( g . exports ) ;
2024-09-29 02:44:16 +00:00
let y ; const w = e => y = e , k = Symbol ( ) ; function _ ( e ) { return e && "object" == typeof e && "[object Object]" === Object . prototype . toString . call ( e ) && "function" != typeof e . toJSON } var S , b ; ( b = S || ( S = { } ) ) . direct = "direct" , b . patchObject = "patch object" , b . patchFunction = "patch function" ; const E = ( ) => { } ; function N ( t , a , n , i = E ) { t . push ( a ) ; const s = ( ) => { const e = t . indexOf ( a ) ; e > - 1 && ( t . splice ( e , 1 ) , i ( ) ) } ; return ! n && e . getCurrentScope ( ) && e . onScopeDispose ( s ) , s } function x ( e , ... t ) { e . slice ( ) . forEach ( ( e => { e ( ... t ) } ) ) } const V = e => e ( ) ; function C ( t , a ) { t instanceof Map && a instanceof Map && a . forEach ( ( ( e , a ) => t . set ( a , e ) ) ) , t instanceof Set && a instanceof Set && a . forEach ( t . add , t ) ; for ( const n in a ) { if ( ! a . hasOwnProperty ( n ) ) continue ; const i = a [ n ] , s = t [ n ] ; _ ( s ) && _ ( i ) && t . hasOwnProperty ( n ) && ! e . isRef ( i ) && ! e . isReactive ( i ) ? t [ n ] = C ( s , i ) : t [ n ] = i } return t } const D = Symbol ( ) ; const { assign : T } = Object ; function B ( t , a , n = { } , i , s , o ) { let r ; const l = T ( { actions : { } } , n ) , c = { deep : ! 0 } ; let d , u , h , m = [ ] , p = [ ] ; const f = i . state . value [ t ] ; let g ; function v ( a ) { let n ; d = u = ! 1 , "function" == typeof a ? ( a ( i . state . value [ t ] ) , n = { type : S . patchFunction , storeId : t , events : h } ) : ( C ( i . state . value [ t ] , a ) , n = { type : S . patchObject , payload : a , storeId : t , events : h } ) ; const s = g = Symbol ( ) ; e . nextTick ( ) . then ( ( ( ) => { g === s && ( d = ! 0 ) } ) ) , u = ! 0 , x ( m , n , i . state . value [ t ] ) } o || f || ( i . state . value [ t ] = { } ) , e . ref ( { } ) ; const y = o ? function ( ) { const { state : e } = n , t = e ? e ( ) : { } ; this . $patch ( ( e => { T ( e , t ) } ) ) } : E ; function k ( e , a ) { return function ( ) { w ( i ) ; const n = Array . from ( arguments ) , s = [ ] , o = [ ] ; function r ( e ) { s . push ( e ) } function l ( e ) { o . push ( e ) } let c ; x ( p , { args : n , name : e , store : B , after : r , onError : l } ) ; try { c = a . apply ( this && this . $id === t ? this : B , n ) } catch ( d ) { throw x ( o , d ) , d } return c instanceof Promise ? c . then ( ( e => ( x ( s , e ) , e ) ) ) . catch ( ( e => ( x ( o , e ) , Promise . reject ( e ) ) ) ) : ( x ( s , c ) , c ) } } const b = { _p : i , $id : t , $onAction : N . bind ( null , p ) , $patch : v , $reset : y , $subscribe ( a , n = { } ) { const s = N ( m , a , n . detached , ( ( ) => o ( ) ) ) , o = r . run ( ( ( ) => e . watch ( ( ( ) => i . state . value [ t ] ) , ( e => { ( "sync" === n . flush ? u : d ) && a ( { storeId : t , type : S . direct , events : h } , e ) } ) , T ( { } , c , n ) ) ) ) ; return s } , $dispose : function ( ) { r . stop ( ) , m = [ ] , p = [ ] , i . _s . delete ( t ) } } , B = e . reactive ( b ) ; i . _s . set ( t , B ) ; const I = ( i . _a && i . _a . runWithContext || V ) ( ( ( ) => i . _e . run ( ( ( ) => ( r = e . effectScope ( ) ) . run ( a ) ) ) ) ) ; for ( const w in I ) { const a = I [ w ] ; if ( e . isRef ( a ) && ( P = a , ! e . isRef ( P ) || ! P . effect ) || e . isReactive ( a ) ) o || ( ! f || _ ( A = a ) && A . hasOwnProperty ( D ) || ( e . isRef ( a ) ? a . value = f [ w ] : C ( a , f [ w ] ) ) , i . state . value [ t ] [ w ] = a ) ; else if ( "function" == typeof a ) { const e = k ( w , a ) ; I [ w ] = e , l . actions [ w ] = a } } var A , P ; return T ( B , I ) , T ( e . toRaw ( B ) , I ) , Object . defineProperty ( B , "$state" , { get : ( ) => i . state . value [ t ] , set : e => { v ( ( t => { T ( t , e ) } ) ) } } ) , i . _p . forEach ( ( e => { T ( B , r . run ( ( ( ) => e ( { store : B , app : i . _a , pinia : i , options : l } ) ) ) ) } ) ) , f && o && n . hydrate && n . hydrate ( B . $state , f ) , d = ! 0 , u = ! 0 , B } function I ( t , a , n ) { let i , s ; const o = "function" == typeof a ; function r ( t , n ) { const r = e . hasInjectionContext ( ) ; ( t = t || ( r ? e . inject ( k , null ) : null ) ) && w ( t ) , ( t = y ) . _s . has ( i ) || ( o ? B ( i , a , s , t ) : function ( t , a , n , i ) { const { state : s , actions : o , getters : r } = a , l = n . state . value [ t ] ; let c ; c = B ( t , ( function ( ) { l || ( n . state . value [ t ] = s ? s ( ) : { } ) ; const a = e . toRefs ( n . state . value [ t ] ) ; return T ( a , o , Object . keys ( r || { } ) . reduce ( ( ( a , i ) => ( a [ i ] = e . markRaw ( e . computed ( ( ( ) => { w ( n ) ; const e = n . _s . get ( t ) ; return r [ i ] . call ( e , e ) } ) ) ) , a ) ) , { } ) ) } ) , a , n , 0 , ! 0 ) } ( i , s , t ) ) ; return t . _s . get ( i ) } return "string" == typeof t ? ( i = t , s = o ? n : a ) : ( s = t , i = t . id ) , r . $id = i , r } const A = I ( "user" , { state : ( ) => ( { userinfo : uni . getStorageSync ( "user" ) && JSON . parse ( uni . getStorageSync ( "user" ) ) || { } , token : uni . getStorageSync ( "token" ) || null , role : uni . getStorageSync ( "role" ) || null , allowPage : uni . getStorageSync ( "allowPage" ) || null , position : uni . getStorageSync ( "position" ) || null , positionSwitch : uni . getStorageSync ( "positionSwitch" ) || null , wendu : uni . getStorageSync ( "wendu" ) || null , wenduIcon : uni . getStorageSync ( "wenduIcon" ) || null , isgray : uni . getStorageSync ( "isgray" ) || 0 } ) , getters : { } , actions : { setUserInfo ( e ) { this . userinfo = e } , setToken ( e ) { this . token = e } , setRole ( e ) { this . role = e } , setPosition ( e ) { this . position = e } , setPositionSwitch ( e ) { this . positionSwitch = e } , setWeather ( e , t ) { this . wendu = e , this . wenduIcon = t } , setAllowPage ( e ) { this . allowPage = e } , setIsgray ( e ) { this . isgray = e } } } ) , P = ( e , t ) => { const a = e . _ _vccOpts || e ; for ( const [ n , i ] of t ) a [ n ] = i ; return a } , M = P ( { _ _name : "login" , setup ( a ) { const n = A ( ) , { proxy : i }