2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
![]() |
(function(){"use strict";var e={246:function(e,n,t){var r=t(9242),o=t(3396),i=t(777),a={__name:"App",setup(e){const n=(0,i.u)();return n.fetchToken(),(e,n)=>{const t=(0,o.up)("RouterView");return(0,o.wg)(),(0,o.j4)(t)}}};const u=a;var c=u,s=t(2483);const f=[{path:"/amap",component:()=>t.e(253).then(t.bind(t,2253))},{path:"/",component:()=>Promise.all([t.e(29),t.e(899)]).then(t.bind(t,1899)),children:[{path:"",component:()=>Promise.all([t.e(29),t.e(445),t.e(67),t.e(49)]).then(t.bind(t,5049))},{path:"monitor",component:()=>Promise.all([t.e(29),t.e(445),t.e(637),t.e(67),t.e(610)]).then(t.bind(t,6008))},{path:"/monitor/detail",component:()=>Promise.all([t.e(29),t.e(445),t.e(637),t.e(910)]).then(t.bind(t,6371))}]}],d=(0,s.p7)({history:(0,s.r5)(),routes:f});var l=d,p=t(606);const h=(0,p.WB)();(0,r.ri)(c).use(h).use(l).mount("#app")},777:function(e,n,t){t.d(n,{u:function(){return i}});var r=t(606),o=t(70);const i=(0,r.Q_)("token",{state:()=>({token:""}),actions:{async fetchToken(){try{const e=await o.ZP.get("http://106.74.152.123:10000/api/v1/login?username=admin&password=de240967f3dff8b62df33e719d646e3e");this.token=e.data.URLToken,console.log(e.data.URLToken)}catch(e){console.log(e)}}}})}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,i){if(!r){var a=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],i=e[f][2];for(var u=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(t.O).every((function(e){return t.O[e](r[c])}))?r.splice(c--,1):(u=!1,i<a&&(a=i));if(u){e.splice(f--,1);var s=o();void 0!==s&&(n=s)}}return n}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[r,o,i]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce((function(n,r){return t.f[r](e,n),n}),[]))}}(),function(){t.u=function(e){return"../apps/com.awspaas.user.apps.cmp/screen/js/"+e+"."+{29:"0305c201",49:"422004a5",67:"7763404b",253:"756cdeb2",445:"5afc801d",610:"2fec22dd",637:"197ce5b1",899:"ae8e5123",910:"fbda3ce5"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"../apps/com.awspaas.user.apps.cmp/screen/css/"+e+"."+{49:"0d466c70",253:"acfc2f5c",610:"601de7ad",899:"c96e5edd",910:"70fd6627"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.hmd=function(e){return e=Object.create(e),e.children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e}}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="data_visual_webpack:";t.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var u,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),f=0;f<s.length;f++){var d=s[f];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==n+i){u=d;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,t.nc&&u.setAttribute("nonce",t.nc),u.setAttribute("data-webpack",n+i),u.src=r),e[r]=[o];var l=function(n,t){u.onerror=u.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(t)})),n)return n(t)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=l.bind(null,u.onerror),u.onload=l.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){t.nmd=function(e){return
|
||
|
//# sourceMappingURL=app.30d18ee1.js.map
|