'update-授权字段'
This commit is contained in:
parent
c326c96459
commit
786d34029c
|
@ -12,12 +12,12 @@
|
||||||
window.routerBase = "./";
|
window.routerBase = "./";
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
//! umi version: 3.5.28
|
//! umi version: 3.5.41
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|
||||||
<script src="./umi.72184622.js"></script>
|
<script src="./umi.cd810995.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[4],{H4Hi:function(e,t,a){e.exports={siderBar:"siderBar___3a9iE",siderHead:"siderHead___2E1rr","ant-menu":"ant-menu___2FcvC"}},tCqT:function(e,t,a){"use strict";a.r(t);a("Pwec");var n=a("CtXQ"),c=a("qLMh"),l=a("9og8"),i=a("tJVT"),r=a("rAM+"),s=(a("lUTK"),a("BvKs")),o=a("q1tI"),m=a.n(o),d=(a("XDpg"),a("xrsn")),u=a.n(d),p=e=>{var t=e.backUrl;return m.a.createElement("div",{className:"admin-header"},m.a.createElement("div",{onClick:()=>{window.location.href=t}},m.a.createElement(n["a"],{className:u.a.backHome,type:"home"}),m.a.createElement("span",null,"\u8fd4\u56de\u4e3b\u7ad9")))},h=a("MuoO"),f=[{title:"GLCC2023",path:"/glcc/2023",name:"GLCC2023",icon:"mail",routes:[{title:"\u914d\u7f6e",path:"/glcc/2023/setting",name:"setting",component:"./glcc/setting"},{title:"\u9879\u76ee\u62a5\u540d\u5217\u8868",path:"/glcc/2023/list",name:"glccList",component:"./glcc/list"},{title:"\u5b66\u751f\u62a5\u540d\u5217\u8868",path:"/glcc/2023/studentList",name:"studentList",component:"./glcc/studentList"},{title:"\u4e2d\u671f\u8003\u6838\u6750\u6599",path:"/glcc/2023/middle",name:"middleList",component:"./glcc/middleTaskList"},{title:"\u4e2d\u671f\u5bfc\u5e08\u8bc4\u5206",path:"/glcc/2023/score",name:"middleScoreList",component:"./glcc/middleScoreList"}]},{title:"GLCC2022",path:"/glcc/2022",name:"GLCC2022",icon:"mail",routes:[{title:"\u9879\u76ee\u62a5\u540d\u5217\u8868",path:"/glcc/2022/list",name:"glccList",component:"./glcc/list"},{title:"\u5b66\u751f\u62a5\u540d\u5217\u8868",path:"/glcc/2022/studentList",name:"studentList",component:"./glcc/studentList"},{title:"\u4e2d\u671f\u8003\u6838\u6750\u6599",path:"/glcc/2022/middle",name:"middleList",component:"./glcc/middleTaskList"},{title:"\u7ed3\u9879\u8003\u6838\u6750\u6599",path:"/glcc/2022/final",name:"finalList",component:"./glcc/finalList"},{title:"\u7ed3\u9879\u5bfc\u5e08\u8bc4\u5206",path:"/glcc/2022/final/tutor",name:"tutorList",component:"./glcc/tutorFinalList"}]}],g=a("H4Hi"),w=a.n(g),b=a("Xe+6"),v=s["a"].SubMenu,y=e=>{var t=e.history,a=e.children,d=(e.dispatch,e.siteInfo),u=!1,h=[],g=t.location.pathname||"/global";if(window.innerWidth>600){var y,L=Object(r["a"])(f);try{for(L.s();!(y=L.n()).done;){var E,O=y.value,k=Object(r["a"])(O.routes);try{for(k.s();!(E=k.n()).done;){var C=E.value;g.indexOf(C.path)>-1&&h.push(O.name)}}catch(T){k.e(T)}finally{k.f()}}}catch(T){L.e(T)}finally{L.f()}}else u=!0;var j=Object(o["useState"])([g]),_=Object(i["a"])(j,2),H=_[0],x=_[1],I=Object(o["useState"])(u),G=Object(i["a"])(I,2),S=G[0],U=G[1];Object(o["useEffect"])((()=>{function e(){return t.apply(this,arguments)}function t(){return t=Object(l["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["a"])({url:"/api/user/getUserInfo",method:"get"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),t.apply(this,arguments)}e().then((e=>{e&&e.data&&!e.data.admin&&"8000"!==window.location.port&&(window.location.href="https://www.gitlink.org.cn/403")}))}),[]),Object(o["useEffect"])((()=>{var e,a=[],n=Object(r["a"])(f);try{for(n.s();!(e=n.n()).done;){var c=e.value;if(Array.isArray(c.routes)){var l,i=Object(r["a"])(c.routes);try{for(i.s();!(l=i.n()).done;){var s=l.value;a.push(s.path)}}catch(T){i.e(T)}finally{i.f()}}}}catch(T){n.e(T)}finally{n.f()}t.listen((e=>{a.includes(e.pathname)&&(console.log(e.pathname),x([e.pathname]))}))}),[t]);if(Array.isArray(d)){var A,N=Object(r["a"])(d);try{for(N.s();!(A=N.n()).done;){O=A.value;"site"===O.name&&O.url}}catch(T){N.e(T)}finally{N.f()}}return m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:w.a.siderBar},m.a.createElement("div",{className:w.a.siderHead,onClick:()=>{U(!S)}},S?m.a.createElement(n["a"],{type:"menu-fold"}):m.a.createElement("h3",null,"GLCC\u7ba1\u7406\u540e\u53f0")),m.a.createElement(s["a"],{selectedKeys:H,defaultOpenKeys:h,mode:"inline",theme:"dark",inlineCollapsed:S},f.map((e=>m.a.createElement(v,{key:e.name,title:m.a.createElement("span",null,m.a.createElement(n["a"],{type:e.icon}),m.a.createElement("span",null,e.title))},e.routes&&e.routes.map((e=>m.a.createElement(s["a"].Item,{key:e.path,onClick:()=>{t.push(e.path),x([e.path])}},e.title)))))))),m.a.createElement("div",{className:"main"},m.a.createElement(p,{backUrl:window.location.href.indexOf("test")>-1?"https://testforgeplus.trustie.net/admins":"https://www.gitlink.org.cn/admins"}),a))};t["default"]=Object(h["connect"])((e=>{var t=e.user,a=e.setting;return{currentUser:t.currentUser,siteInfo:a.menuSetting.siteInfo}}))(y)},xrsn:function(e,t,a){e.exports={backHome:"backHome___2HrP2",headImg:"headImg___3leGw"}}}]);
|
|
@ -0,0 +1 @@
|
||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[5],{pssB:function(e,a,c){"use strict";c.r(a);var t=c("q1tI"),n=c.n(t);class s extends t["Component"]{render(){return n.a.createElement("div",{className:"content"},n.a.createElement("div",{className:"text-center"},n.a.createElement("img",{src:"/img/pic_404.jpg"}),n.a.createElement("p",{className:"font-18"},"\u60a8\u53ef\u4ee5\u7a0d\u540e\u5c1d\u8bd5\xa0",n.a.createElement("a",{href:"/",className:"color-blue"},"\u8fd4\u56de\u9996\u9875"),"\uff0c\u6216\u8005\xa0",n.a.createElement("a",{target:"_blank",href:"//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd",className:"color-blue"},"QQ\u53cd\u9988>>"))))}}a["default"]=s}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[14],{"5Dmo":function(n,t,r){"use strict";r("cIOH"),r("5YgA")},"5YgA":function(n,t,r){},Pwec:function(n,t,r){"use strict";r("cIOH"),r("WtSK")},WtSK:function(n,t,r){},lUTK:function(n,t,r){"use strict";r("cIOH"),r("x54q"),r("5Dmo")},"rAM+":function(n,t,r){"use strict";r.d(t,"a",(function(){return o}));var e=r("Qw5x");function o(n,t){var r="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!r){if(Array.isArray(n)||(r=Object(e["a"])(n))||t&&n&&"number"===typeof n.length){r&&(n=r);var o=0,i=function(){};return{s:i,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,a=!1;return{s:function(){r=r.call(n)},n:function(){var n=r.next();return c=n.done,n},e:function(n){a=!0,u=n},f:function(){try{c||null==r["return"]||r["return"]()}finally{if(a)throw u}}}}},x54q:function(n,t,r){}}]);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue