| | |
| | | </template> |
| | | |
| | | <script> |
| | | const appId = 'wxafc5aaa0fc79532b'; //需要替换成实际的 |
| | | const appId = 'wx1441324401626290'; //需要替换成实际的 |
| | | import WXBizDataCrypt from '@/plugins/WXBizDataCrypt.js'; |
| | | import { |
| | | mapState |
| | |
| | | this.dto.picture = picture |
| | | } |
| | | |
| | | // #ifdef MP |
| | | |
| | | const { |
| | | code |
| | | } = await this.$http.request('post', "/api/current/user/update", { |
| | |
| | | // fullName: this.dto.nickName |
| | | } |
| | | }) |
| | | // #endif |
| | | |
| | | // // #ifndef MP |
| | | // if (!!this.dto.email) { |
| | | // if (!this.$util.isEmail(this.dto.email)) { |
| | |
| | | // // #endif |
| | | this.$message.hideLoading() |
| | | |
| | | // #ifdef MP |
| | | if (code == 0) { |
| | | this.$message.showToast('更新成功') |
| | | // this.$store.commit('updateInfo',this.dto) |
| | | // } |
| | | await this.$store.dispatch('getCurrentInfo'); |
| | | } |
| | | // #endif |
| | | |
| | | |
| | | |
| | | }, |