app.890b8af8.js 15 KB

12
  1. (function(){var e={1159:function(e,t,r){"use strict";var n=r(6848),o=(r(4829),function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)}),a=[],s={name:"APP",mounted(){},methods:{}},i=s,l=r(1656),u=(0,l.A)(i,o,a,!1,null,null,null),c=u.exports,d=r(9143),f=r.n(d),m=r(6178),p=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"home",attrs:{"element-loading-text":"登录中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.2)"}},[e._m(0),t("div",{staticClass:"right"},[e._m(1),t("div",{staticClass:"login"},[t("div",{staticClass:"loginbox"},[t("div",{staticStyle:{width:"100%","text-align":"center","font-size":"2rem",margin:"3.5vh 0 5vh 0",color:"#0059ff","font-family":"'Changgui'"}},[e._v(" 登录 ")]),t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{display:"flex","justify-content":"center","flex-wrap":"wrap"},attrs:{model:e.ruleForm,rules:e.rules,"label-width":"0px"}},[t("el-form-item",{staticClass:"loginname",attrs:{prop:"username"}},[t("el-input",{staticStyle:{width:"20vw"},attrs:{placeholder:"请输入登录账号"},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}},[t("template",{slot:"prefix"},[t("img",{staticStyle:{"margin-top":"13px","margin-left":"7px"},attrs:{src:r(9053),alt:"search"}})])],2)],1),t("el-form-item",{staticStyle:{"margin-top":"1vh"},attrs:{prop:"password"}},[t("el-input",{staticStyle:{width:"20vw"},attrs:{"show-password":"",placeholder:"请输入登录密码"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}},[t("template",{slot:"prefix"},[t("img",{staticStyle:{"margin-top":"13px","margin-left":"7px"},attrs:{src:r(7286),alt:"search"}})])],2)],1),t("el-form-item",{staticStyle:{"margin-top":"1vh"},attrs:{prop:"authCode"}},[t("el-input",{staticStyle:{width:"20vw"},attrs:{"show-password":"",placeholder:"请输入授权码"},model:{value:e.ruleForm.authCode,callback:function(t){e.$set(e.ruleForm,"authCode",t)},expression:"ruleForm.authCode"}},[t("template",{slot:"prefix"},[t("img",{staticStyle:{"margin-top":"13px","margin-left":"7px"},attrs:{src:r(1087),alt:"search"}})])],2)],1),t("el-form-item",{staticStyle:{"margin-top":"4vh"}},[e.isloginshow?t("el-button",{staticStyle:{width:"20vw",height:"50px","font-size":"20px","background-color":"#0059FF"},attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("登录")]):t("el-button",{staticStyle:{width:"20vw",height:"50px","font-size":"20px","background-color":"#81ADFF"},attrs:{type:"primary"}},[e._v("登录")])],1)],1)],1)])])])},h=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"left"},[t("img",{staticStyle:{"margin-top":"10%",width:"60vw"},attrs:{src:r(4226),alt:"",srcset:""}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"titlebox"},[t("div",[t("img",{staticStyle:{width:"17vw"},attrs:{src:r(3800),alt:"",srcset:""}}),t("div",{staticStyle:{"text-align":"center",color:"#0059ff","font-size":"2.5rem",margin:"1.5vh 0"}},[e._v(" 元宇宙连接世界 ")])])])}],g=(r(4114),function(){var e=this,t=e._self._c;return t("div",{staticClass:"hello"},[t("h1",[e._v(e._s(e.msg))]),e._m(0),t("h3",[e._v("Installed CLI Plugins")]),e._m(1),t("h3",[e._v("Essential Links")]),e._m(2),t("h3",[e._v("Ecosystem")]),e._m(3)])}),A=[function(){var e=this,t=e._self._c;return t("p",[e._v(" For a guide and recipes on how to configure / customize this project,"),t("br"),e._v(" check out the "),t("a",{attrs:{href:"https://cli.vuejs.org",target:"_blank",rel:"noopener"}},[e._v("vue-cli documentation")]),e._v(". ")])},function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("a",{attrs:{href:"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel",target:"_blank",rel:"noopener"}},[e._v("babel")])]),t("li",[t("a",{attrs:{href:"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router",target:"_blank",rel:"noopener"}},[e._v("router")])]),t("li",[t("a",{attrs:{href:"https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex",target:"_blank",rel:"noopener"}},[e._v("vuex")])])])},function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("a",{attrs:{href:"https://vuejs.org",target:"_blank",rel:"noopener"}},[e._v("Core Docs")])]),t("li",[t("a",{attrs:{href:"https://forum.vuejs.org",target:"_blank",rel:"noopener"}},[e._v("Forum")])]),t("li",[t("a",{attrs:{href:"https://chat.vuejs.org",target:"_blank",rel:"noopener"}},[e._v("Community Chat")])]),t("li",[t("a",{attrs:{href:"https://twitter.com/vuejs",target:"_blank",rel:"noopener"}},[e._v("Twitter")])]),t("li",[t("a",{attrs:{href:"https://news.vuejs.org",target:"_blank",rel:"noopener"}},[e._v("News")])])])},function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("a",{attrs:{href:"https://router.vuejs.org",target:"_blank",rel:"noopener"}},[e._v("vue-router")])]),t("li",[t("a",{attrs:{href:"https://vuex.vuejs.org",target:"_blank",rel:"noopener"}},[e._v("vuex")])]),t("li",[t("a",{attrs:{href:"https://github.com/vuejs/vue-devtools#vue-devtools",target:"_blank",rel:"noopener"}},[e._v("vue-devtools")])]),t("li",[t("a",{attrs:{href:"https://vue-loader.vuejs.org",target:"_blank",rel:"noopener"}},[e._v("vue-loader")])]),t("li",[t("a",{attrs:{href:"https://github.com/vuejs/awesome-vue",target:"_blank",rel:"noopener"}},[e._v("awesome-vue")])])])}],v={name:"HelloWorld",props:{msg:String}},w=v,b=(0,l.A)(w,g,A,!1,null,"1935ec24",null),y=b.exports,k=r(4780),_={name:"HomeView",components:{HelloWorld:y},data(){return{loading:!1,isloginshow:!1,ruleForm:{username:"",password:"",authCode:""},rules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],authCode:[{required:!0,message:"请输入授权码",trigger:"blur"}]}}},mounted(){},watch:{ruleForm:{handler(e){console.log("sadasdasd",e),""!==e.username&&""!==e.password&&""!==e.authCode?this.isloginshow=!0:this.isloginshow=!1},deep:!0}},methods:{encryptedData(e,t){let r=new JSEncrypt;return r.setPublicKey(e),r.encrypt(t)},submitForm(e){this.$refs[e].validate((async e=>{if(!e)return this.loading=!1,console.log("error submit!!"),!1;{this.loading=!0;const e=await(0,k.uf)();console.log("kanjjjjj",e);let t=JSON.parse(JSON.stringify(this.ruleForm));t.password=this.encryptedData(e.data.data,t.password),t.username=this.encryptedData(e.data.data,t.username),t.authCode=this.encryptedData(e.data.data,t.authCode);const r=await(0,k.s)(t);if(console.log("kankan====>",r.data),r.data.data){localStorage.setItem("adminToken",r.data.data),this.loading=!1;let e={token:r.data.data,server:window.CONFIG_HOST},t=JSON.stringify(e);ue.html_ue.testfunction(t).then((function(e){})),this.$router.push("/login")}else this.loading=!1,this.$message.error(r.data.message)}}))},resetForm(e){this.$refs[e].resetFields()}}},S=_,C=(0,l.A)(S,p,h,!1,null,"6f84d01e",null),x=C.exports;n["default"].use(m.Ay);const E=[{path:"/",name:"home",component:x},{path:"/login",name:"login",component:()=>r.e(594).then(r.bind(r,6278))}],j=new m.Ay({mode:"hash",base:"",routes:E});j.beforeEach(((e,t,r)=>{console.log("kankan=====",e),console.log("kankan=====3",t);const n=localStorage.getItem("adminToken");"home"===e.name||n?(n&&setInterval((async()=>{console.log("到这里了");let e=await(0,k.ve)(n);console.log("kankna222211",e),localStorage.setItem("adminToken",e.data.data);let t={token:e.data.data},r=JSON.stringify(t);ue.html_ue.testfunction(r).then((function(e){}))}),48e4),r()):r({name:"home"})}));var F=j,O=r(3518);n["default"].use(O.Ay);var I=new O.Ay.Store({state:{},getters:{},mutations:{},actions:{},modules:{}});n["default"].use(f()),n["default"].config.productionTip=!1,localStorage.clear(),localStorage.setItem("submitaudit","0"),localStorage.setItem("isaudit","0"),new n["default"]({router:F,store:I,render:e=>e(c)}).$mount("#app")},957:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});const n=axios.create({baseURL:window.CONFIG_HOST,timeout:1e4});n.interceptors.request.use((e=>{let t=localStorage.getItem("adminToken");return t&&(e.headers.Authorization="Bearer "+t),e}),(e=>(console.error("请求拦截器发生错误:",e),Promise.reject(e)))),n.interceptors.response.use((e=>e),(async e=>(console.log("wsdasad",e),403==e.response.status&&(localStorage.clear(),window.location.href="/"),Promise.reject(e))))},4780:function(e,t,r){"use strict";r.d(t,{B:function(){return i},S5:function(){return l},s:function(){return a},uf:function(){return o},ve:function(){return s}});var n=r(957);const o=e=>n.l.post("/encrypt/rsaKey"),a=e=>n.l.post("/jwt/token",e),s=e=>n.l.post("/jwt/refreshToken",e),i=e=>n.l.post("/config/manage/update",e),l=e=>n.l.post("/config/manage/all",e)},4829:function(){const e=16;function t(){const t=document.documentElement.clientWidth/1920;document.documentElement.style.fontSize=e*Math.min(t,2)+"px"}t(),window.onresize=function(){t()}},3800:function(e,t,r){"use strict";e.exports=r.p+"img/link.2d0cba1b.svg"},9053:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEeSURBVHgBpZPdTYRAEMd3F0LgbUvADuhArECtwOOJj6ezAs8K1AdCgIf1OqAES7AEOpA3PhLAmYuauxEOz/snhGUy85vZmYGzCSVJstI07W4cRxc+K8550ff9YxiGJfXl1JDn+cMwDJsJbgX2W4C87RsFyezOBKOkEEJR4wEASr1hx2XHcezMAuDOcgHAoAp5DPDOllXOAizLeqUOJMELncQBwPM87PTVFASDgyBYU/uvMX4LJwIvG8+maRYIn/LjNEjX9WvI5sxwS1io7f4u/ACyLFMQuGJ/07Pv+/d42PUgTdOnE4JRa6h2s6tAKSW7rvtgp6syDONCNE3jsP9J1nXt4hVsdoZ0HFHbtg78B5dfsKV1rqBf+GyjKCo+AclMea8BT7pmAAAAAElFTkSuQmCC"},7286:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEySURBVHgBlVHLbYQwELX5iSNbQbwdQAVJB0k6WE7AaZUKki0hB4TEhXSQpIKkg2Q7oASuSHz2DbIlL8KsGAns8bx582aGs5lVVRV0XXcchuEAV+CrOee/fd+fsiyr53iuO0VRCMuyfmQiG8eRkoUM157nRXEcN3qOpTu2bb9SMlUEeJem6R5K9nj7ove2bd/mCq4IUDGkE3JjVYlkg+Rlksv54yoBLFBJ+qPv+0p2c4tg0UgNqkdQ8jyPTUPM8zx0XfeIFp5IBcAfJjLEGmzpXal0pp/jfCJZKBDuBxMBYgybovhOb0EsYKnffwNPoC6mGdDkoyRJIrnGxoBbJoDMs+pRrvF7EwF6vJv592yjgrAsy4ru8hSbCCTJA62XTrZizkpMYL1/7IZNCjCkE9tgOv4C4wmEM8w/QAgAAAAASUVORK5CYII="},1087:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFUSURBVHgBlVPLbYNAEOUnzk4HuIKQCmJ3YFcQcwLEIUkFkUvIASFOJB3gCkwJTgXZEnxGfPIGL9bY2TXySKv9vXkz83bWNDRWFMWsrusCS+G67jYIgqMKZ6ocm6Z57bruDduZPBbYb+M4/lISZFm2wOTZtv3c9/2KOV6bME2zAmYHwiMIK4dOLcva04wLY8I8YDaYN/ARmOfWDXCJ2h8QaU6RdSAtAXQYhEOaom3bz7sJkKI/rh3HedThHN0FxHqBuJVxqnsxRUBvzJUvoyhay7UA0VIK7Y0AkIohUxntwFkh3Dvfkw7UB/xMvsKJAILtjAmDw0UnQtjvIfh4kOf5L0tRYBwQ9Yc2ssF8VmYZhuFQ4llEZLGG2nsJIiIPUVeyXh5c8BIv/kKapj4jURk5L0mTc2n8NkkSSvvJUHQesqiunf9lwA1PR/3+Qc+FQT+xUuH+AM1ppHKX8oSJAAAAAElFTkSuQmCC"},4226:function(e,t,r){"use strict";e.exports=r.p+"img/login01.1746eec0.png"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=e,function(){r.amdO={}}(),function(){var e=[];r.O=function(t,n,o,a){if(!n){var s=1/0;for(c=0;c<e.length;c++){n=e[c][0],o=e[c][1],a=e[c][2];for(var i=!0,l=0;l<n.length;l++)(!1&a||s>=a)&&Object.keys(r.O).every((function(e){return r.O[e](n[l])}))?n.splice(l--,1):(i=!1,a<s&&(s=a));if(i){e.splice(c--,1);var u=o();void 0!==u&&(t=u)}}return t}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[n,o,a]}}(),function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))}}(),function(){r.u=function(e){return"js/about.8ef69e16.js"}}(),function(){r.miniCssF=function(e){return"css/about.627152fa.css"}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="my-vue-project:";r.l=function(n,o,a,s){if(e[n])e[n].push(o);else{var i,l;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+a){i=d;break}}i||(l=!0,i=document.createElement("script"),i.charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.setAttribute("data-webpack",t+a),i.src=n),e[n]=[o];var f=function(t,r){i.onerror=i.onload=null,clearTimeout(m);var o=e[n];if(delete e[n],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((function(e){return e(r)})),t)return t(r)},m=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){r.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,t,n,o,a){var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",r.nc&&(s.nonce=r.nc);var i=function(r){if(s.onerror=s.onload=null,"load"===r.type)o();else{var n=r&&r.type,i=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+n+": "+i+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=n,l.request=i,s.parentNode&&s.parentNode.removeChild(s),a(l)}};return s.onerror=s.onload=i,s.href=t,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s),s},t=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}var s=document.getElementsByTagName("style");for(n=0;n<s.length;n++){o=s[n],a=o.getAttribute("data-href");if(a===e||a===t)return o}},n=function(n){return new Promise((function(o,a){var s=r.miniCssF(n),i=r.p+s;if(t(s,i))return o();e(n,i,null,o,a)}))},o={524:0};r.f.miniCss=function(e,t){var r={594:1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=n(e).then((function(){o[e]=0}),(function(t){throw delete o[e],t})))}}}(),function(){var e={524:0};r.f.j=function(t,n){var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var a=new Promise((function(r,n){o=e[t]=[r,n]}));n.push(o[2]=a);var s=r.p+r.u(t),i=new Error,l=function(n){if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",i.name="ChunkLoadError",i.type=a,i.request=s,o[1](i)}};r.l(s,l,"chunk-"+t,t)}},r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,a,s=n[0],i=n[1],l=n[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(l)var c=l(r)}for(t&&t(n);u<s.length;u++)a=s[u],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(c)},n=self["webpackChunkmy_vue_project"]=self["webpackChunkmy_vue_project"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var n=r.O(void 0,[504],(function(){return r(1159)}));n=r.O(n)})();
  2. //# sourceMappingURL=app.890b8af8.js.map