(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dd0d8774"],{"1e4b":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container home"},[n("div",{staticClass:"index-item"},[n("el-image",{staticClass:"item-img",attrs:{src:e.indexImg,fit:"fill"}})],1)])},a=[],s=(n("ac1f"),n("5319"),n("5b81"),n("ae5c")),o=n.n(s),c=n("c0c7"),r=n("4c6b"),u={name:"Profile",data:function(){return{tabPosition:"right",indexImg:o.a,activeNames:["0"],user:{},title:"",open:!1,open2:!1,act:!1,isAdmin:!1,endTime:"--",query:{gkeyData:"验证码生成中...",akeyData:""},domainData:{domain:""},versionDescribe:"暂无更新说明",version:"3.4.0",newVersion:"3.4.0"}},created:function(){this.init()},methods:{init:function(){this.getUser()},getUser:function(){var e=this;Object(c["g"])().then((function(t){e.user=t.data,1==e.user.userId&&(e.isAdmin=!0,e.checkActivation(),e.getNewVersion())}))},cancel:function(){this.open=!1,this.open2=!1},activation:function(){var e=this;1==this.user.userId&&(Object(r["e"])().then((function(t){e.query.gkeyData=t})),this.title="平台激活",this.open=!0)},getNewVersion:function(){var e=this;Object(r["d"])().then((function(t){t.data.version!=e.version&&(e.newVersion=t.data.version,e.url=t.data.url,e.versionDescribe=t.data.versionDescribe,e.versionDescribe=e.versionDescribe.replaceAll("\n","<br />"),e.$notify({title:"警告",message:"当前系统有新版本需要更新！",type:"warning",duration:3e3}))}))},apt:function(){var e=this;Object(r["a"])(this.query).then((function(t){1==t?(e.open=!1,e.$modal.msgSuccess("激活成功！"),e.query.akeyData="",e.getUser()):(e.$modal.msgError("激活失败，请重新获取激活码！"),e.query.akeyData="")}))},checkActivation:function(){var e=this;this.domainData.domain=window.location.hostname,Object(r["c"])(this.domainData).then((function(t){e.act=t.result,e.endTime=t.endTime,0==t.result&&1==e.isAdmin&&e.$notify({title:"警告",message:"平台未激活，为了避免影响使用请立即激活！",type:"warning",duration:3e3})}))},openVersion:function(){this.open2=!0},goTarget:function(e){window.open(e,"_blank")}}},d=u,f=(n("6954"),n("2877")),h=Object(f["a"])(d,i,a,!1,null,"f697d6e6",null);t["default"]=h.exports},6954:function(e,t,n){"use strict";n("9517")},9517:function(e,t,n){},ae5c:function(e,t,n){e.exports=n.p+"static/img/back.0d4277dd.png"}}]);