|
webpackJsonp([12],{pbcH:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("34v0"),s=a.n(n),r=a("OHGg"),i=a("gyMJ"),o=a("EcfS"),l={data:function(){return{updatePassowrdVisible:!1}},components:{UpdatePassword:r.default},computed:{navbarClasses:function(){var t=this.$store.state.navbarLayoutType;return[/\S/.test(t)&&"default"!==t?"site-navbar--"+t:""]}},methods:s()({switchSidebarCollapseHandle:function(){this.SWITCH_SIDEBAR_COLLAPSE({collapse:!this.$store.state.sidebarCollapse})},updatePasswordHandle:function(){var t=this;this.updatePassowrdVisible=!0,this.$nextTick(function(){t.$refs.updatePassowrd.init()})},logoutHandle:function(){var t=this;this.$confirm("确定进行[退出]操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){i.a.common.logout().then(function(e){var a=e.data;a&&0===a.code&&(t.DELETE_CONTENT_TABS([]),t.$cookie.delete("token"),t.$router.replace({name:"login"}))})})}},Object(o.b)(["SWITCH_SIDEBAR_COLLAPSE","DELETE_CONTENT_TABS"]))},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"site-navbar",class:t.navbarClasses},[n("div",{staticClass:"site-navbar__header"},[n("h1",{staticClass:"site-navbar__brand",on:{click:function(e){t.$router.push({name:"home"})}}},[n("a",{staticClass:"site-navbar__brand-lg",attrs:{href:"javascript:;"}},[t._v("人人快速开发平台")]),t._v(" "),n("a",{staticClass:"site-navbar__brand-mini",attrs:{href:"javascript:;"}},[t._v("人人")])])]),t._v(" "),n("div",{staticClass:"site-navbar__body clearfix"},[n("el-menu",{staticClass:"site-navbar__menu",attrs:{mode:"horizontal"}},[n("el-menu-item",{staticClass:"site-navbar__switch",attrs:{index:"0"},on:{click:function(e){t.switchSidebarCollapseHandle()}}},[n("icon-svg",{attrs:{name:"zhedie"}})],1)],1),t._v(" "),n("el-menu",{staticClass:"site-navbar__menu site-navbar__menu--right",attrs:{mode:"horizontal"}},[n("el-menu-item",{attrs:{index:"1"},on:{click:function(e){t.$router.push({name:"setting"})}}},[n("template",{attrs:{slot:"title"},slot:"title"},[n("el-badge",{attrs:{value:"new"}},[n("i",{staticClass:"el-icon-setting"})])],1)],2),t._v(" "),n("el-menu-item",{attrs:{index:"2"}},[n("el-badge",{attrs:{value:"hot"}},[n("a",{attrs:{href:"//www.renren.io/",target:"_blank"}},[t._v("官方社区")])])],1),t._v(" "),n("el-submenu",{attrs:{index:"3"}},[n("template",{attrs:{slot:"title"},slot:"title"},[t._v("Git源码")]),t._v(" "),n("el-menu-item",{attrs:{index:"2-1"}},[n("a",{attrs:{href:"//github.com/daxiongYang/renren-fast-vue",target:"_blank"}},[t._v("前端")])]),t._v(" "),n("el-menu-item",{attrs:{index:"2-2"}},[n("a",{attrs:{href:"//git.oschina.net/renrenio/renren-fast",target:"_blank"}},[t._v("后台")])]),t._v(" "),n("el-menu-item",{attrs:{index:"2-3"}},[n("a",{attrs:{href:"//git.oschina.net/renrenio/renren-generator",target:"_blank"}},[t._v("代码生成器")])])],2),t._v(" "),n("el-menu-item",{staticClass:"site-navbar__avatar",attrs:{index:"3"}},[n("el-dropdown",{attrs:{placement:"bottom","hide-on-click":!1}},[n("span",{staticClass:"el-dropdown-link"},[n("img",{attrs:{src:a("zQrT"),alt:t.$store.state.user.name}}),t._v("\n "+t._s(t.$store.state.user.name)+"\n ")]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(e){t.updatePasswordHandle()}}},[t._v("修改密码")]),t._v(" "),n("el-dropdown-item",{nativeOn:{click:function(e){t.logoutHandle()}}},[t._v("退出")])],1)],1)],1)],1)],1),t._v(" "),t.updatePassowrdVisible?n("update-password",{ref:"updatePassowrd"}):t._e()],1)},staticRenderFns:[]},d=a("mPyB")(l,c,!1,null,null,null);e.default=d.exports},zQrT:function(t,e,a){t.exports=a.p+"static/img/avatar.c58e465.png"}});
|