"use strict";(self["webpackChunkmi_wifi_agent"]=self["webpackChunkmi_wifi_agent"]||[]).push([[6966],{4231:function(e,a,t){t.r(a),t.d(a,{default:function(){return P}});var i=t(641),n=t(2644);const o=e=>((0,i.Qi)("data-v-47c5c61e"),e=e(),(0,i.jt)(),e),l={class:"login_bg"},s={class:"login_adv",style:{"background-image":"url(img/auth_banner.jpg)"}},c={class:"login_adv__title"},g=o((()=>(0,i.Lk)("h2",null,"Mi-WIFI-Agent",-1))),d=o((()=>(0,i.Lk)("div",{class:"login_adv__mask"},null,-1))),r={class:"login_adv__bottom"},h={class:"login_main"},u={class:"login_config"},L={class:"login-form"},m={class:"login-header"},v={class:"logo"},_=["alt"];function k(e,a,t,o,k,f){const O=(0,i.g2)("el-button"),A=(0,i.g2)("password-form"),$=(0,i.g2)("el-tab-pane"),b=(0,i.g2)("el-tabs");return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.Lk)("div",s,[(0,i.Lk)("div",c,[g,(0,i.Lk)("h4",null,(0,n.v_)(e.$t("login.slogan")),1),(0,i.Lk)("p",null,(0,n.v_)(e.$t("login.describe")),1)]),d,(0,i.Lk)("div",r," © "+(0,n.v_)(e.$CONFIG.APP_NAME)+" "+(0,n.v_)(e.$CONFIG.APP_VER),1)]),(0,i.Lk)("div",h,[(0,i.Lk)("div",u,[(0,i.bF)(O,{icon:k.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:f.configDark},null,8,["icon","onClick"])]),(0,i.Lk)("div",L,[(0,i.Lk)("div",m,[(0,i.Lk)("div",v,[(0,i.Lk)("img",{alt:e.$CONFIG.APP_NAME,src:"img/logo.png"},null,8,_),(0,i.Lk)("label",null,(0,n.v_)(e.$CONFIG.APP_NAME),1)])]),(0,i.bF)(b,null,{default:(0,i.k6)((()=>[(0,i.bF)($,{label:e.$t("login.accountLogin"),lazy:""},{default:(0,i.k6)((()=>[(0,i.bF)(A)])),_:1},8,["label"])])),_:1})])])])}var f=t(940),O=t(6028),A={components:{passwordForm:f["default"],phoneForm:O["default"]},data(){return{config:{lang:this.$TOOL.data.get("APP_LANG")||this.$CONFIG.LANG,dark:this.$TOOL.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",showWechatLogin:!1,isWechatLoginResult:!1}},watch:{"config.dark"(e){e?(document.documentElement.classList.add("dark"),this.$TOOL.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$TOOL.data.remove("APP_DARK"))},"config.lang"(e){this.$i18n.locale=e,this.$TOOL.data.set("APP_LANG",e)}},created:function(){this.$TOOL.cookie.remove("TOKEN"),this.$TOOL.data.remove("USER_INFO"),this.$TOOL.data.remove("MENU"),this.$TOOL.data.remove("PERMISSIONS"),this.$TOOL.data.remove("DASHBOARDGRID"),this.$TOOL.data.remove("grid"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList"),console.log("%c Mi-WIFI-Agent %c v1.0.0","background:#666;color:#fff;border-radius:3px;","")},methods:{configDark(){this.config.dark=!this.config.dark},configLang(e){this.config.lang=e.value},wechatLogin(){this.showWechatLogin=!0,this.WechatLoginCode="SCUI-823677237287236-"+(new Date).getTime(),this.isWechatLoginResult=!1,setTimeout((()=>{this.isWechatLoginResult=!0}),3e3)}}},$=t(6262);const b=(0,$.A)(A,[["render",k],["__scopeId","data-v-47c5c61e"]]);var P=b}}]);