|
|
|
!function(t){function e(e){for(var r,i,u=e[0],c=e[1],s=e[2],f=0,p=[];f<u.length;f++)i=u[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);for(l&&l(e);p.length;)p.shift()();return a.push.apply(a,s||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],r=!0,u=1;u<n.length;u++){var c=n[u];0!==o[c]&&(r=!1)}r&&(a.splice(e--,1),t=i(i.s=n[0]))}return t}var r={},o={0:0},a=[];function i(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(t){var e=[],n=o[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,r){n=o[t]=[e,r]}));e.push(n[2]=r);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(t){return i.p+""+({}[t]||t)+"."+{2:"a0b09c382597960bc0ac",3:"c1ce12f0c4971c482f67"}[t]+".js"}(t);var c=new Error;a=function(e){u.onerror=u.onload=null,clearTimeout(s);var n=o[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;c.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",c.name="ChunkLoadError",c.type=r,c.request=a,n[1](c)}o[t]=void 0}};var s=setTimeout((function(){a({type:"timeout",target:u})}),12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(e)},i.m=t,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i.oe=function(t){throw console.error(t),t};var u=window.webpackJsonp=window.webpackJsonp||[],c=u.push.bind(u);u.push=e,u=u.slice();for(var s=0;s<u.length;s++)e(u[s]);var l=c;a.push([14,1]),n()}({10:function(t,e,n){"use strict";n.r(e);var r=n(6),o=n.n(r),a=n(7),i=n.n(a)()(o.a);i.push([t.i,"*[data-v-0bb2a73c] {\n color: red;\n}\n","",{version:3,sources:["webpack://./src/App.vue"],names:[],mappings:"AAAA;EACE,UAAU;AACZ",sourcesContent:["*[data-v-0bb2a73c] {\n color: red;\n}\n"],sourceRoot:""}]),e.default=i},14:function(t,e,n){"use strict";n.r(e);var r=n(0),o={data:function(){return{}},mounted:function(){console.log("asd")}},a=(n(9),n(4)),i=Object(a.a)(o,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{attrs:{id:"app"}},[this._v("\n hello world!!!\n "),e("div",{staticStyle:{display:"flex","justify-content":"space-around"}},[e("router-link",{staticStyle:{width:"100%","text-align":"center","line-height":"50px"},attrs:{tag:"div",to:"/home"}},[this._v("home")]),e("router-link",{staticStyle:{width:"100%","text-align":"center","line-height":"50px"},attrs:{tag:"div",to:"/about"}},[this._v("about")])],1),e("router-view")],1)}),[],!1,null,"0bb2a73c",null).exports,u=n(2);r.a.use(u.a);var c=n(3);r.a.use(c.a);var s=n(8);Vue.mixin({beforeRouteUpdate:function(t,e,n){var r=this.$options.asyncData;r?r({store:this.$store,route:t}).then(n).catch(n):n()}});var l,f,p=(l=new u.a({mode:"history",routes:[{path:"/",redirect:"/home"},{path:"/home",component:function(){return n.e(3).then(n.bind(null,16))}},{path:"/about",component:function(){return n.e(2).then(n.bind(null,17))}}]}),f=new c.a.Store({state:{items:{}},actions:{fetchItem:function(t,e){var n=t.commit;return new Promise((function(t,e){n("setItem",{id:1,item:"111"}),t()}))}},mutations:{setItem:function(t,e){var n=e.id,o=e.item;r.a.set(t.items,n,o)}}}),Object(s.sync)(f,l),{app:new r.a({router:l,store:f,render:function(t){return t(i)}}),router:l,store:f}),d=p.app,h=p.router,v=p.store;window.__INITIAL_STATE__&&v.replaceState(window.__INITIAL_STATE__),h.onReady((function(){h.beforeResolve((function(t,e,n){var r=h.getMatchedComponents(t),o=h.getMatchedComponents(e),a=!1,i=r.filter((function(t,e){return a||(a=o[e]!==t)}));if(!i.length)return n();Promise.all(i.map((function(e){if(e.asyncData)return e.asyncData({store:v,route:t})}))).then((function(){n()})).catch(n)})),d.$mount("#app")}))},5:function(t,e,n){var r=n(10);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(15).default)("20f5089d",r,!0,{})},9:function(t,e,n){"use strict";n(5)}}); |