chunk-4515ebc5.34f4c1d0.js 2.0 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4515ebc5"],{"21bb":function(t,e,n){"use strict";n("8821")},8821:function(t,e,n){},bb51:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-container",[n("el-header",[n("div",{staticClass:"header"},[n("span",{staticClass:"logout",on:{click:t.logout}},[t._v("退出登陆")]),n("div",{staticClass:"siteTitle"},[t._v("顽主杯实盘大赛后台")])])]),n("el-container",{staticClass:"main"},[n("el-aside",{staticClass:"left-aside",attrs:{width:"210px"}},[n("el-menu",{staticClass:"left-menue",attrs:{"background-color":"#151932","text-color":"#ffffff","unique-opened":!1,"default-active":"/"+t.$route.path.split("/")[1],router:"","active-text-color":"#ffffff"}},[t._l(t.$router.options.routes,(function(e,a){return[e.show&&e.isLeaf?n("el-menu-item",{key:a,attrs:{index:e.path}},[n("i",{class:e.icon}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.name))])]):t._e(),e.show&&!e.isLeaf?n("el-submenu",{key:a,attrs:{index:"index_"+a}},[n("template",{slot:"title"},[n("i",{class:e.icon}),n("span",[t._v(t._s(e.name))])]),n("el-menu-item-group",t._l(e.children,(function(e,i){return n("el-menu-item",{directives:[{name:"show",rawName:"v-show",value:!e.hide,expression:"!child.hide"}],key:a+"_"+i,staticClass:"child",attrs:{index:e.path}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t\t\t\t")])})),1)],2):t._e()]}))],2)],1),n("el-container",[n("el-main",[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)],1)],1)],1)},i=[],s={name:"home",data:function(){return{}},methods:{logout:function(){var t=this;this.$api.logout().then((function(e){t.$router.push({path:"/"})}))},getData:function(){var t=this;this.$api.getAccountInfo().then((function(e){e.code||(t.info=e.data.data)}))}},created:function(){this.getData()}},o=s,l=(n("21bb"),n("4ac2")),c=Object(l["a"])(o,a,i,!1,null,null,null);e["default"]=c.exports}}]);
  2. //# sourceMappingURL=chunk-4515ebc5.34f4c1d0.js.map