autoUpdataFile

dev_local_v10_kjhkdx
eduauto 7 months ago
parent 3d64c1e09c
commit 67879cabf8

@ -172,7 +172,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script><script src="/react/build/js/jweixin.js" crossorigin="anonymous"></script>
<script src="/react/build/umi.174ed14a.js" crossorigin="anonymous"></script>
<script src="/react/build/umi.17770605.js" crossorigin="anonymous"></script>
<script src="/react/build/js/public.js" crossorigin="anonymous"></script>
</body>
</html>

@ -0,0 +1 @@
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1344],{96046:function(y,l,n){n.r(l);var t=n(59301),o=n(76560),f=n(71418),g=n(49661);const E=({})=>{const s=(0,o.useLocation)(),h=(0,t.useRef)(null),[m,p]=(0,t.useState)(!0),[c,v]=(0,t.useState)(""),r=(0,o.useSelector)(a=>{var i;return(i=a==null?void 0:a.globalSetting)==null?void 0:i.setting});(0,t.useEffect)(()=>{v(s.pathname+s.search)},[]),(0,t.useEffect)(()=>{const a=i=>{try{const e=JSON.parse(i.data);if(console.log(e,"messageData"),e.type==="ComponentLoaded"){p(!1);const d=window.location.pathname+window.location.search;d!==e.data&&u(d)}e.type==="ChangeThePath"&&o.history.push(e.data),e.type==="OpenThePath"&&(0,g.xg)(e.data),e.type==="BackThePath"&&o.history.back()}catch(e){}};return window.addEventListener("message",a),()=>{window.removeEventListener("message",a)}},[]),(0,t.useEffect)(()=>{c&&u(s.pathname+s.search)},[s.pathname]);const u=a=>{h.current.contentWindow.postMessage(JSON.stringify({type:"ChangeTheRoute",data:a}),"*")};return t.createElement(f.Z,{spinning:m},c&&t.createElement("iframe",{ref:h,style:{border:"none",display:"block",width:"100vw",height:"calc(100vh - 72px)"},src:`${r==null?void 0:r.hami_url}${c}`}))};l.default=E}}]);

@ -1 +0,0 @@
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1344],{96046:function(v,c,a){a.r(c);var e=a(59301),o=a(76560),f=a(71418);const g=({})=>{const i=(0,o.useLocation)(),u=(0,e.useRef)(null),[m,E]=(0,e.useState)(!0),[l,p]=(0,e.useState)(""),r=(0,o.useSelector)(t=>{var s;return(s=t==null?void 0:t.globalSetting)==null?void 0:s.setting});(0,e.useEffect)(()=>{p(i.pathname)},[]),(0,e.useEffect)(()=>{const t=s=>{try{const n=JSON.parse(s.data);if(console.log(n,"messageData"),n.type==="ComponentLoaded"){E(!1);const h=window.location.pathname;h!==n.data&&d(h)}n.type==="ChangeThePath"&&o.history.push(n.data)}catch(n){}};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},[]),(0,e.useEffect)(()=>{l&&d(i.pathname)},[i.pathname]);const d=t=>{u.current.contentWindow.postMessage(JSON.stringify({type:"ChangeTheRoute",data:t}),"*")};return e.createElement(f.Z,{spinning:m},l&&e.createElement("iframe",{ref:u,style:{border:"none",display:"block",width:"100vw",height:"calc(100vh - 72px)"},src:`${r==null?void 0:r.hami_url}${l}`}))};c.default=g}}]);

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save