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