(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cc4d35f4"],{"7b79":function(e,s,t){"use strict";t("d5ca")},a4f8:function(e,s,t){"use strict";t.r(s);var a=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"page-my-info"},[t("div",{staticClass:"title"},[e._v("基本信息")]),t("el-form",{attrs:{size:"small","label-width":"100px",model:e.form,disabled:e.saving}},[t("el-form-item",{attrs:{label:"头像"}},[t("cl-upload",{model:{value:e.form.headImg,callback:function(s){e.$set(e.form,"headImg",s)},expression:"form.headImg"}})],1),t("el-form-item",{attrs:{label:"昵称"}},[t("el-input",{model:{value:e.form.nickName,callback:function(s){e.$set(e.form,"nickName",s)},expression:"form.nickName"}})],1),t("el-form-item",{attrs:{label:"密码"}},[t("el-input",{attrs:{type:"password"},model:{value:e.form.password,callback:function(s){e.$set(e.form,"password",s)},expression:"form.password"}})],1),t("el-form-item",{attrs:{label:""}},[t("el-button",{attrs:{type:"primary",disabled:e.saving},on:{click:e.save}},[e._v("保存修改")])],1)],1)],1)},o=[],n=t("f374"),r=t("5880"),i={data:function(){return{form:{},saving:!1}},computed:Object(n["a"])({},Object(r["mapGetters"])(["userInfo"])),mounted:function(){this.form=this.userInfo},methods:{save:function(){var e=this;this.saving=!0;var s=this.form,t=s.headImg,a=s.nickName,o=s.password;this.$service.common.userUpdate({headImg:t,nickName:a,password:o}).then((function(){e.form.password="",e.$message.success("修改成功"),e.$store.dispatch("userInfo")}))["catch"]((function(s){e.$message.error(s)})).done((function(){e.saving=!1}))}}},c=i,l=(t("7b79"),t("5d22")),m=Object(l["a"])(c,a,o,!1,null,null,null);s["default"]=m.exports},d5ca:function(e,s,t){}}]);