import{n as a,v as l}from"./package.3367ca0a.js";import{n as c}from"./vueComponentNormalizer.9ef17bb1.js";var r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"_head"},[t("h1",{staticClass:"i-logo",on:{click:function(s){return e.$router.push("/entry")}}},[e._v(" "+e._s(e.name)+" "),t("span",[e._v("V"+e._s(e.version))])]),e.$store.isOpenWin?e._e():t("div",{staticClass:"action_icon i-x-ktbj-text-align-justify"},[t("ul",{staticClass:"actions_layout"},e._l(e.actions,function(s,i){return t("li",{key:i,class:s.icon,on:{click:s.handle}},[e._v(" "+e._s(s.label)+" ")])}),0)])])},_=[];const u={data:()=>({name:a,version:l}),created(){this.actions=[{label:"\u4FEE\u6539\u5BC6\u7801",icon:"i-mima",handle:this.$store.showUpdatePasswordDialog},{label:"\u5728\u7EBF\u7B54\u7591",icon:"i-j-fbks-pingyu",handle:()=>{this.openWin("#/online-course/online-FAQ?win=1","\u5728\u7EBF\u7B54\u7591")}},{label:"\u9000\u51FA\u767B\u5F55",icon:"i-tb-tuichudenglu",handle:this.$store.logout}],this.$store.user.baseRole===3&&this.actions.splice(1,0,{label:"\u8BFE\u5802\u7B14\u8BB0",icon:"i-j-fbks-pingyu",handle:()=>{this.openWin("#/online-course/class-notes?win=1","\u8BFE\u5802\u7B14\u8BB0")}})},methods:{openWin(e,n=""){window.open(e,n,"scrollbars=no,resizable=yes,statebar=no,location=no,width=1000,height=700,left=100,top=100")},toHome(){this.$router.push("/")}}},o={};var h=c(u,r,_,!1,d,"344c3ba9",null,null);function d(e){for(let n in o)this[n]=o[n]}const f=function(){return h.exports}();export{f as H};
