You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
8.1 KiB
2 lines
8.1 KiB
(function(){var e={60061:function(e,t,n){n(42359),n(43219),n(80487),function(){function e(e,t,n){return e.getAttribute(t)||n}function t(e){return document.getElementsByTagName(e)}function n(){var n=t("script"),r=n.length,o=n[r-1];return{l:r,z:e(o,"zIndex",-1),o:e(o,"opacity",.5),c:e(o,"color","0,0,0"),n:e(o,"count",99)}}function r(){i=c.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=c.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function o(){var e,t,n,r,c,l;f.clearRect(0,0,i,u),h.forEach((function(o,d){for(o.x+=o.xa,o.y+=o.ya,o.xa*=o.x>i||o.x<0?-1:1,o.ya*=o.y>u||o.y<0?-1:1,f.fillRect(o.x-.5,o.y-.5,1,1),t=d+1;t<a.length;t++)e=a[t],null!==e.x&&null!==e.y&&(r=o.x-e.x,c=o.y-e.y,l=r*r+c*c,l<e.max&&(e===p&&l>=e.max/2&&(o.x-=.03*r,o.y-=.03*c),n=(e.max-l)/e.max,f.beginPath(),f.lineWidth=n/2,f.strokeStyle="rgba("+s.c+","+(n+.2)+")",f.moveTo(o.x,o.y),f.lineTo(e.x,e.y),f.stroke()))})),d(o)}var i,u,a,c=document.createElement("canvas"),s=n(),l="c_n"+s.l,f=c.getContext("2d"),d=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/45)},m=Math.random,p={x:null,y:null,max:2e4};c.id=l,c.style.cssText="position:fixed;top:0;left:0;z-index:"+s.z+";opacity:"+s.o,t("body")[0].appendChild(c),r(),window.onresize=r,window.onmousemove=function(e){e=e||window.event,p.x=e.clientX,p.y=e.clientY},window.onmouseout=function(){p.x=null,p.y=null};for(var h=[],v=0;s.n>v;v++){var g=m()*i,y=m()*u,w=2*m()-1,b=2*m()-1;h.push({x:g,y:y,xa:w,ya:b,max:6e3})}a=h.concat([p]),setTimeout((function(){o()}),100)}()},80343:function(e,t,n){"use strict";n(21725),n(51385),n(16570),n(9943);var r=n(95647),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view"),n("el-backtop")],1)},i=[],u=(n(5855),n(60061),{name:"app",created:function(){this.$notify({title:"欢迎来到吃啥-智能菜谱推荐系统",message:"学习交流所用,切勿作其他用途",position:"top-left",type:"success",duration:8e3});var e=JSON.parse(window.localStorage.getItem("userMenuRecord"));e||window.localStorage.setItem("userMenuRecord",JSON.stringify([]))},mounted:function(){var e=this.$cookies.get("token");e&&(window.sessionStorage.setItem("user",JSON.stringify(e)),this.$router.push("/eat"))}}),a=u,c=n(35471),s=(0,c.Z)(a,o,i,!1,null,null,null),l=s.exports,f=(n(42359),n(73196),n(63402),n(58128));r["default"].use(f.Z);var d=function(){return n.e(450).then(n.bind(n,85450))},m=function(){return n.e(279).then(n.bind(n,80279))},p=function(){return n.e(401).then(n.bind(n,81401))},h=new f.Z({routes:[{path:"/",redirect:"/home"},{path:"/login",component:m},{path:"/home",component:d,redirect:"/eat",children:[{path:"/eat",component:p}]}]});h.beforeEach((function(e,t,n){var r=JSON.parse(window.sessionStorage.getItem("user"));"/eat"===e.path?null!==r?n():n("/login"):n()}));var v=h,g=n(26490);r["default"].use(g.ZP);var y=new g.ZP.Store({state:{userInfoVisible:!1,userMenuRecordDrawerVisible:!1,userName:""},mutations:{SetUserInfoVisible:function(e,t){e.userInfoVisible=t},SetUserMenuRecordDrawerVisible:function(e,t){e.userMenuRecordDrawerVisible=t},SetUserName:function(e,t){e.userName=t}}}),w=n(60174),b=n.n(w);r["default"].use(b());var x=n(22081),S=n.n(x),k=n(23854),O=n.n(k),E=n(82246),T=n.n(E);r["default"].use(T()),r["default"].config.productionTip=!1,S().interceptors.request.use((function(e){return O().start(),e})),S().interceptors.response.use((function(e){return O().done(),e})),r["default"].prototype.$http=S(),S().defaults.baseURL="/api",new r["default"]({router:v,store:y,render:function(e){return e(l)}}).$mount("#app")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,i){if(!r){var u=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||u>=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(a=!1,i<u&&(u=i));if(a){e.splice(l--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))}}(),function(){n.u=function(e){return"js/"+e+"-legacy."+{279:"3f18867e",401:"1e3a7d16",450:"9be1b147"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+".4a465870.css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="eatwhat:";n.l=function(r,o,i,u){if(e[r])e[r].push(o);else{var a,c;if(void 0!==i)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){a=f;break}}a||(c=!0,a=document.createElement("script"),a.charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[o];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(n)})),t)return t(n)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){n.p="/"}(),function(){var e=function(e,t,n,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css";var i=function(i){if(o.onerror=o.onload=null,"load"===i.type)n();else{var u=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=u,c.request=a,o.parentNode.removeChild(o),r(c)}};return o.onerror=o.onload=i,o.href=t,document.head.appendChild(o),o},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===e||i===t))return o}var u=document.getElementsByTagName("style");for(r=0;r<u.length;r++){o=u[r],i=o.getAttribute("data-href");if(i===e||i===t)return o}},r=function(r){return new Promise((function(o,i){var u=n.miniCssF(r),a=n.p+u;if(t(u,a))return o();e(r,a,o,i)}))},o={143:0};n.f.miniCss=function(e,t){var n={450:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=r(e).then((function(){o[e]=0}),(function(t){throw delete o[e],t})))}}(),function(){var e={143:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=i);var u=n.p+n.u(t),a=new Error,c=function(r){if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+u+")",a.name="ChunkLoadError",a.type=i,a.request=u,o[1](a)}};n.l(u,c,"chunk-"+t,t)}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,u=r[0],a=r[1],c=r[2],s=0;if(u.some((function(t){return 0!==e[t]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=c(n)}for(t&&t(r);s<u.length;s++)i=u[s],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=self["webpackChunkeatwhat"]=self["webpackChunkeatwhat"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=n.O(void 0,[998],(function(){return n(80343)}));r=n.O(r)})();
|
|
//# sourceMappingURL=app-legacy.4a6a66a2.js.map
|