(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-a2313f08"],{"5be2":function(t,e,r){"use strict";r.d(e,"g",(function(){return o})),r.d(e,"h",(function(){return n})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return a})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return u})),r.d(e,"a",(function(){return f})),r.d(e,"f",(function(){return m}));var s=r("f175");const o=()=>s.a.get("/settings.user.user/getConfig"),n=t=>s.a.post("/settings.user.user/setConfig",t),i=()=>s.a.get("/settings.user.user/getRegisterConfig"),a=t=>s.a.post("/settings.user.user/setRegisterConfig",t),l=()=>s.a.get("/settings.user.user/getInviteConfig"),u=t=>s.a.post("/settings.user.user/setInviteConfig",t),f=t=>s.a.get("/settings.EmailSetting/getConfig",{params:t}),m=t=>s.a.post("/settings.EmailSetting/setConfig",t)},d92d:function(t,e,r){"use strict";r.r(e);var s=r("5be2"),o=r("b3ad"),n=(r("b6c4"),{data:()=>({form:{host:"",port:"",user:"",pass:"",from_name:""}}),components:{MaterialSelect:o.a},methods:{setEmailSetting(){Object(s.f)(this.form).then(t=>{this.getEmailSetting()})},getEmailSetting(){Object(s.a)().then(t=>{this.form=t})},submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1;this.setEmailSetting()})}},mounted(){this.getEmailSetting()}}),i=r("2877"),a=Object(i.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"ls-card m-t-16"},[r("div",{staticClass:"card-title"},[t._v("邮箱登录设置")]),r("div",{staticClass:"card-content m-t-24"},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"90px"}},[r("el-form-item",{attrs:{required:"",prop:"host",label:"host"}},[r("el-input",{model:{value:t.form.host,callback:function(e){t.$set(t.form,"host",e)},expression:"form.host"}}),r("span",{staticStyle:{color:"gray","margin-left":"10px"}},[t._v("域名")])],1),r("el-form-item",{attrs:{required:"",prop:"port",label:"port"}},[r("el-input",{model:{value:t.form.port,callback:function(e){t.$set(t.form,"port",e)},expression:"form.port"}}),r("span",{staticStyle:{color:"gray","margin-left":"10px"}},[t._v("改用587端口(TLS)，兼容性更好")])],1),r("el-form-item",{attrs:{required:"",prop:"user",label:"user"}},[r("el-input",{model:{value:t.form.user,callback:function(e){t.$set(t.form,"user",e)},expression:"form.user"}}),r("span",{staticStyle:{color:"gray","margin-left":"10px"}},[t._v("你的邮箱")])],1),r("el-form-item",{attrs:{required:"",prop:"pass",label:"pass"}},[r("el-input",{model:{value:t.form.pass,callback:function(e){t.$set(t.form,"pass",e)},expression:"form.pass"}}),r("span",{staticStyle:{color:"gray","margin-left":"10px"}},[t._v("你的邮箱SMTP授权码")])],1),r("el-form-item",{attrs:{required:"",prop:"from_name",label:"from_name"}},[r("el-input",{model:{value:t.form.from_name,callback:function(e){t.$set(t.form,"from_name",e)},expression:"form.from_name"}}),r("span",{staticStyle:{color:"gray","margin-left":"10px"}},[t._v("发送名字")])],1)],1)],1)]),r("div",{staticClass:"bg-white ls-fixed-footer"},[r("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[r("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.submitForm("form")}}},[t._v("编辑")])],1)])])}),[],!1,null,null,null);e.default=a.exports}}]);