text: webpackJsonp([9],{lbu1:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("Dd8w"),i=s.n(a),n=s("XH5V"),o=s("NYxO"),r=Object(o.createNamespacedHelpers)("noteBadge"),l=r.mapState,c=r.mapActions,h={data:function(){return{alias:"",breadName:"",breadPath:""}},beforeRouteEnter:function(t,e,s){console.log("进入"),s(function(e){e.breadName=t.meta,e.breadPath=t.path,console.log(t)})},beforeRouteUpdate:function(t,e,s){console.log("更新"),this.breadName=t.meta,this.breadPath=t.path,s()},created:function(){var t=localStorage.getItem("authData");t?this.alias=JSON.parse(t).alias:this.$router.replace("/login"),this.getCount()},methods:i()({},c(["getCount"]),{onLogout:function(){localStorage.setItem("authData",""),this.$router.replace("/login")}}),computed:i()({},l(["noteNumber"]),{isAdmin:function(){return Object(n.a)()&&Object(n.a)().ifAdmin}})},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("el-container",{staticClass:"container"},[e("el-header",{staticClass:"header",attrs:{height:"60px"}},[e("div",{staticClass:"left"},[e("a",{staticClass:"img-wrap"},[e("img",{staticClass:"gicon",attrs:{src:"/static/imgs/logo.jpg",alt:""}})])]),this._v(" "),e("div",{staticClass:"right"},[e("div",{staticClass:"info-wrap"},[e("span",{staticClass:"name"},[this._v("\n          欢迎： "+this._s(this.alias)+"\n        ")]),this._v(" "),e("span",{staticClass:"logout",on:{click:this.onLogout}},[this._v("退出")])])])]),this._v(" "),e("el-container",[e("el-aside",{staticClass:"menu-wrap",attrs:{width:"200px"}},[e("el-menu",{staticClass:"menu",attrs:{router:!0,"default-active":this.$route.path}},[e("el-menu-item",{attrs:{index:"/home"}},[e("i",{staticClass:"icon-activity_fill iconfont"}),this._v(" "),e("span",{attrs:{slot:"title"},slot:"title"},[this._v("首页")])]),this._v(" "),e("el-menu-item",{attrs:{index:"/note"}},[e("i",{staticClass:"icon-barrage_fill iconfont"}),this._v(" "),e("span",{attrs:{slot:"title"},slot:"title"},[this._v("留言("+this._s(this.noteNumber)+")")])]),this._v(" "),e("el-menu-item",{attrs:{index:"/game"}},[e("i",{staticClass:"el-icon-share"}),this._v(" "),e("span",{attrs:{slot:"title"},slot:"title"},[this._v("游戏分享")])]),this._v(" "),e("el-menu-item",{directives:[{name:"show",rawName:"v-show",value:this.isAdmin,expression:"isAdmin"}],attrs:{index:"/user"}},[e("i",{staticClass:"icon-group_fill iconfont"}),this._v(" "),e("span",{attrs:{slot:"title"},slot:"title"},[this._v("用户管理")])])],1)],1),this._v(" "),e("el-main",[e("el-breadcrumb",{staticClass:"bread",attrs:{separator:"/"}},[e("el-breadcrumb-item",{attrs:{to:{path:this.breadPath}}},[this._v(this._s(this.breadName))]),this._v(" "),e("el-breadcrumb-item")],1),this._v(" "),e("transition",{attrs:{name:"slide","enter-active-class":"animated bounceInLeft","leave-active-class":"animated bounceOutRight",mode:"out-in"}},[e("router-view")],1)],1)],1),this._v(" "),e("el-footer",{staticClass:"footer",attrs:{height:"25px"}},[e("span",{staticClass:"copyright"},[this._v("小志    2018")])])],1)},staticRenderFns:[]};var m=s("VU/8")(h,u,!1,function(t){s("nhg8")},"data-v-64d7c656",null);e.default=m.exports},nhg8:function(t,e){}});
  //# sourceMappingURL=layout.9.1247590c9ecef15aa0b6.js.map