PageSourceSearch

https://cs-c1.yiketu.com/assets/index-85660f63.js

js yiketu.com collected 2026-09-24 10:20:06 UTC 1,249 bytes, 1 lines download raw bytes

1import{f as b}from"./global-0d0d0236.js";import{am as k}from"./vender-6fd14064.js";let s=!1,l=0,i=new Date().getTime();function f(){return s}const v=async()=>await fetch(`/version.json?${i}`).then(r=>r.json()),m=()=>{s=!0,console.log("=============> 新版本更新")};var h;const w=b?"":(h=document.querySelector("html"))==null?void 0:h.dataset.versionNo;async function d(){if(i+l<new Date().getTime())try{l=2*60*1e3;const{version:e}=await v()||{};e>Number(w)&&m()}catch(e){console.error(`检测到新版本异常:${e}`)}finally{i=new Date().getTime()}}const y=k(e=>{s||(e&&e!==w?m():d())},5e3);function N(e,r,g=""){e&&(e.beforeEach((t,o,V)=>{const a=()=>{window.location.href=g+t.fullPath};f()?a():d().then(()=>{f()?a():V()})}),console.log("=========> Route逻辑已注入")),r&&(r.interceptors.response.use(t=>{try{const{version:o=0}=(t==null?void 0:t.data)||{};y(o)}catch(o){console.log(o)}return t}),console.log("=========> Request逻辑已注入")),console.log("=========> 版本检查初始化完成")}let n,c,u="";function C(e){e.router&&(n=e.router),e.request&&(c=e.request),e.base&&(u=e.base),n&&c&&(N(n,c,u),n=void 0,c=void 0)}export{y as checkVersionUpdated,d as fetchJsonCheckVersion,N as initCheckVersion,C as lazyInitCheckVersion};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.