(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-579b75c8","chunk-2d0c93d7","chunk-2d0df2b5"],{"310e":function(t,e,a){"use strict";a("880c")},"57fe":function(t,e,a){t.exports=a.p+"img/bg.33d3aae9.jpg"},"86c0":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-login"})},i=[],s=a("5530"),r=(a("ac1f"),a("5319"),a("5880")),c=a("1353"),o=a("da52"),u={mixins:[c["a"]],beforeCreate:function(){this.$store.dispatch("d2admin/settings/init")},data:function(){return{processTitle:"ANSJER-硬盘管理系统",backgroundImage:"url("+this.loginBackground+")",formLogin:{username:"",password:"",captcha:""},rules:{username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},captchaKey:null,image_base:null,selectUsersDialogVisible:!1,users:[{name:"超管",username:"superadmin",password:"admin123456"},{name:"管理员",username:"admin",password:"admin123456"}]}},computed:Object(s["a"])({},Object(r["mapState"])("d2admin",{siteLogo:function(t){return t.settings.data["login.site_logo"]||a("8986")},keepRecord:function(t){return t.settings.data["login.keep_record"]},siteName:function(t){return t.settings.data["login.site_name"]},copyright:function(t){return t.settings.data["login.copyright"]},loginBackground:function(t){return t.settings.data["login.login_background"]||a("57fe")},helpUrl:function(t){return t.settings.data["login.help_url"]},privacyUrl:function(t){return t.settings.data["login.privacy_url"]},clauseUrl:function(t){return t.settings.data["login.clause_url"]},captchaState:function(t){return void 0===t.settings.data["base.captcha_state"]||t.settings.data["base.captcha_state"]}})),mounted:function(){},beforeDestroy:function(){},methods:Object(s["a"])(Object(s["a"])({},Object(r["mapActions"])("d2admin/account",["login"])),{},{getCaptcha:function(){var t=this;(void 0===this.captchaState||this.captchaState)&&o["getCaptcha"]().then((function(e){t.formLogin.captcha=null,t.captchaKey=e.data.key,t.image_base=e.data.image_base}))},submit:function(){var t=this,e=this;this.$refs.loginForm.validate((function(a){a?t.login({username:e.formLogin.username,password:e.$md5(e.formLogin.password),captcha:e.formLogin.captcha,captchaKey:e.captchaKey}).then((function(){t.$router.replace(t.$route.query.redirect||"/")})).catch((function(){t.getCaptcha()})):t.$message.error("表单校验失败，请检查")}))},handleUserBtnClick:function(t){this.formLogin.username=t.username,this.formLogin.password=t.password,this.selectUsersDialogVisible=!1,this.captchaState||this.submit()}}),created:function(){this.$store.dispatch("d2admin/db/databaseClear"),this.getCaptcha()}},d=u,g=(a("310e"),a("2877")),l=Object(g["a"])(d,n,i,!1,null,"e811ddf8",null);e["default"]=l.exports},"880c":function(t,e,a){},8986:function(t,e,a){t.exports=a.p+"img/dvadmin.9c88a65d.png"}}]);