webpackJsonp([5],{FC9P:function(t,e){},RvH3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("7+uW"),i={name:"Header",data:function(){return{username:this.$store.state.username,api_url:window.location.protocol+"//"+window.location.host+"/api/v1/docs"}},computed:{},methods:{logout:function(){console.log("logout"),this.$store.commit("logout"),this.$router.push({name:"login"})},on_click_menu:function(t,e){0!=t.indexOf("http")?0!=t.indexOf("/")?this.$router.push({name:t}):this.$router.push(t):window.open(t)},on_change_pw:function(){var t=new(o.default.component("ChangePassword"));t.$mount(),this.$el.appendChild(t.$el)}}},l={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-menu",{staticClass:"el-menu-demo",staticStyle:{padding:"0px"},attrs:{mode:"horizontal","background-color":"#545c64","text-color":"#fff","active-text-color":"#ffd04b"},on:{select:t.on_click_menu}},[n("div",{staticStyle:{float:"left","border-right":"1px solid #FFF",width:"200px",height:"60px","line-height":"60px",color:"#FFF","text-align":"center","font-size":"30px"}},[t._v("CMDB")]),t._v(" "),n("el-menu-item",{attrs:{index:"main"}},[t._v("主页")]),t._v(" "),n("el-menu-item",{attrs:{index:"deleted"}},[t._v("已删除")]),t._v(" "),n("el-menu-item",{attrs:{index:"table"}},[t._v("表管理")]),t._v(" "),n("el-menu-item",{attrs:{index:"user"}},[t._v("用户管理")]),t._v(" "),n("el-menu-item",{attrs:{index:t.api_url}},[t._v("API接口")]),t._v(" "),n("el-menu-item",{attrs:{index:"https://zhuanlan.zhihu.com/p/34191320"}},[t._v("帮助")]),t._v(" "),n("el-menu-item",{attrs:{index:"https://github.com/open-cmdb/cmdb"}},[t._v("源代码")]),t._v(" "),n("el-menu-item",{attrs:{index:"https://github.com/open-cmdb/cmdb/issues"}},[t._v("我要吐槽")]),t._v(" "),n("el-dropdown",{staticStyle:{float:"right",margin:"18px"}},[n("span",{staticClass:"el-dropdown-link",staticStyle:{"font-size":"22px",color:"#FFF"}},[t._v(t._s(t.username)),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[n("span",{staticStyle:{width:"100%"},on:{click:t.on_change_pw}},[t._v("修改密码")])]),t._v(" "),n("el-dropdown-item",[n("span",{staticStyle:{width:"100%"},on:{click:t.logout}},[t._v("退出")])])],1)],1)],1)},staticRenderFns:[]};var s=n("VU/8")(i,l,!1,function(t){n("FC9P")},"data-v-9320f80e",null);e.default=s.exports}});
//# sourceMappingURL=5.65d45684aebc87c84311.js.map