index.4f80521c.js 1.6 KB

1
  1. import{_ as y,y as k,o as d,g as _,d as n,t as I,u as c,f as m,L as S,M as x,a as C,U as L,i as H,V as A,W as B}from"./index.832bf9da.js";var D="/assets/logo_img.14bd2d67.png";const f=e=>(S("data-v-5374e5ef"),e=e(),x(),e),R={class:"header"},V=f(()=>n("img",{src:D},null,-1)),N=[V],T={class:"register"},U=m(" \u5DF2\u6709\u8D26\u53F7\uFF1F"),W=f(()=>n("span",null,"\u8BF7\u767B\u5F55",-1)),$=[U,W],b=m(" \u6CA1\u6709\u8D26\u53F7\uFF1F"),E=f(()=>n("span",null,"\u7ACB\u5373\u6CE8\u518C>",-1)),F=[b,E],M={__name:"LoginHeader",setup(e){const t=k(),i=t.currentRoute.value.href,a=o=>{t.push({path:o})},u=()=>{t.push({path:"/"})};return(o,s)=>(d(),_("div",R,[n("div",{class:"logo",onClick:u},N),n("div",T," \u6B22\u8FCE"+I(c(i)=="/register"?"\u6CE8\u518C":"\u767B\u5F55")+"\uFF01 ",1),c(i)=="/register"?(d(),_("div",{key:0,class:"logins",onClick:s[0]||(s[0]=r=>a("/login"))},$)):(d(),_("div",{key:1,class:"logins",onClick:s[1]||(s[1]=r=>a("/register"))},F))]))}};var j=y(M,[["__scopeId","data-v-5374e5ef"]]),g;const p=typeof window!="undefined";p&&((g=window==null?void 0:window.navigator)==null?void 0:g.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function O(e){return typeof e=="function"?e():c(e)}function h(e){return A()?(B(e),!0):!1}function q(e,t=1e3,i={}){const{immediate:a=!0,immediateCallback:u=!1}=i;let o=null;const s=C(!1);function r(){o&&(clearInterval(o),o=null)}function v(){s.value=!1,r()}function l(){c(t)<=0||(s.value=!0,u&&e(),r(),o=setInterval(e,O(t)))}if(a&&p&&l(),L(t)){const w=H(t,()=>{s.value&&p&&l()});h(w)}return h(v),{isActive:s,pause:v,resume:l}}export{j as L,q as u};