1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
|
webpackJsonp([19],{"+oRl":function(t,a,e){t.exports=e.p+"static/img/touxiang.2ca0afc.jpeg"},TdIe:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("cdA+"),n=e("0xDb"),i={data:function(){return{updatePassowrdVisible:!1}},components:{UpdatePassword:s.default},computed:{navbarLayoutType:{get:function(){return this.$store.state.common.navbarLayoutType}},sidebarFold:{get:function(){return this.$store.state.common.sidebarFold},set:function(t){this.$store.commit("common/updateSidebarFold",t)}},mainTabs:{get:function(){return this.$store.state.common.mainTabs},set:function(t){this.$store.commit("common/updateMainTabs",t)}},userName:{get:function(){return this.$store.state.user.name}}},methods:{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(){Object(n.a)(),t.$router.push({name:"login"})}).catch(function(){})}}},o={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("nav",{staticClass:"site-navbar",class:"site-navbar--"+t.navbarLayoutType},[s("div",{staticClass:"site-navbar__header"},[s("h1",{staticClass:"site-navbar__brand",on:{click:function(a){t.$router.push({name:"home"})}}},[s("p",{staticClass:"site-navbar__brand-lg"},[t._v("智能网关")]),t._v(" "),s("a",{staticClass:"site-navbar__brand-mini",attrs:{href:"javascript:;"}},[t._v("智能网关")])])]),t._v(" "),s("div",{staticClass:"site-navbar__body clearfix"},[s("el-menu",{staticClass:"site-navbar__menu",attrs:{mode:"horizontal"}},[s("el-menu-item",{staticClass:"site-navbar__switch",attrs:{index:"0"},on:{click:function(a){t.sidebarFold=!t.sidebarFold}}},[s("icon-svg",{staticClass:"site-navbar-icon",attrs:{name:"侧边收纳"}})],1)],1),t._v(" "),s("el-menu",{staticClass:"site-navbar__menu site-navbar__menu--right",attrs:{mode:"horizontal"}},[s("el-menu-item",{staticClass:"site-navbar__avatar",attrs:{index:"3"}},[s("el-dropdown",{attrs:{"show-timeout":0,placement:"bottom"}},[s("span",{staticClass:"el-dropdown-link"},[s("img",{attrs:{src:e("+oRl"),alt:t.userName}}),t._v(t._s(t.userName)+"\n ")]),t._v(" "),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[s("el-dropdown-item",{nativeOn:{click:function(a){t.logoutHandle()}}},[t._v("退出")])],1)],1)],1)],1)],1),t._v(" "),t.updatePassowrdVisible?s("update-password",{ref:"updatePassowrd"}):t._e()],1)},staticRenderFns:[]},r=e("VU/8")(i,o,!1,null,null,null);a.default=r.exports}});
|