main.4f54d86c.js 1.9 KB

1
  1. import{d as l,o as p,c as d,u as _,a as h,b as f,g as v,r as y,e as T,f as g,h as I,i as P,_ as a,p as A,s as w,j as D,k as E,l as S}from"./use-app.6166ee5b.js";import"./lib-flexible.08f197e6.js";var s=l({setup(){var r;const e=_();(r=e==null?void 0:e.query)!=null&&r.Authorization&&sessionStorage.setItem("Authorization",e.query.Authorization);let t=Date.now();const i=""+Date.now(),c=async()=>{if(h()!="student")return;const o=f(),u=v(),m=Date.now()-t;t=Date.now(),await y.post("/musicPracticeRecord/save",{prefix:u,requestType:"json",data:{musicSheetId:o.id,sysMusicScoreId:o.id,feature:o.feature,playTime:m/1e3,deviceType:T(),behaviorId:i}})};let n=null;return p(()=>{clearInterval(n),e.name&&(console.log("\u8FDB\u5165\u4E91\u6559\u7EC3"),n=setInterval(()=>{c()},60*1e3))}),()=>d(g("router-view"),null,null)}}),b=Object.freeze(Object.defineProperty({__proto__:null,default:s},Symbol.toStringTag,{value:"Module"}));const R=[{path:"/",name:"home",component:()=>a(()=>Promise.resolve().then(function(){return b}),void 0),children:[{path:"",name:"musicScore",component:()=>a(()=>import("./index.994f5808.js"),["assets/index.994f5808.js","assets/index.3ba46ee8.css","assets/use-app.6166ee5b.js","assets/use-app.17b73ee5.css","assets/index.1dc0af74.js","assets/index.e1931f92.css","assets/index.22e5f4c8.js","assets/index.ab3bc978.js","assets/index.9d97b55d.js","assets/index.93438080.css","assets/index.829a7301.js"])}]},{path:"/:path(.*)*",name:"ErrorPage",component:()=>a(()=>import("./index.39ed1385.js"),["assets/index.39ed1385.js","assets/use-app.6166ee5b.js","assets/use-app.17b73ee5.css","assets/index.22e5f4c8.js"])}];var z=I({history:P("/orchestra-music-score"),routes:R});A({api:"getToken"}).then(e=>{var t;(t=e==null?void 0:e.content)!=null&&t.accessToken&&sessionStorage.setItem("Authorization",e.content.tokenType+" "+e.content.accessToken)});w.clintNmae="colexiu";window.DYEnvironment="colexiu";document.body.style.setProperty("--osdm-zoom",""+D());E();S(s).use(z).mount("#app");