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
2 years ago
|
(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;
|
||
|
//# sourceMappingURL=app-legacy.4a6a66a2.js.map
|