| | |
| | | import { Vue,Component } from 'vue-property-decorator' |
| | | import { namespace } from 'vuex-class'; |
| | | |
| | | import _ from 'lodash'; |
| | | |
| | | import accountSettingService from '~/shared/services/account-setting.service'; |
| | | import { UserSetting } from '~/shared/models/account.model'; |
| | | |
| | |
| | | //////////////////////////////////////////////////////////// |
| | | mounted(){ |
| | | accountSettingService.getUserAccountSetting().then((userInfo: UserSetting)=>{ |
| | | this.defaultUserSetting = _.cloneDeep({ |
| | | this.defaultUserSetting = { |
| | | name : userInfo.name || '', |
| | | phone: userInfo.phone || '', |
| | | email: userInfo.email || '', |
| | | }); |
| | | }; |
| | | this.phoneValue = this.defaultUserSetting.phone!; |
| | | this.userNameValue = this.defaultUserSetting.name!; |
| | | this.emailValue = this.defaultUserSetting.email!; |
| | |
| | | targetInput.focus(); |
| | | }); |
| | | } |
| | | |
| | | updateAccountSetting(): void { |
| | | const editSettingInfo: UserSetting = { |
| | | name: this.userNameValue, |