|
@@ -49,15 +49,12 @@
|
|
that.deptListurl.id = that.userInfo.id
|
|
that.deptListurl.id = that.userInfo.id
|
|
that.$api.doRequest('post', '/commonUser/editUserInfo', that.deptListurl).then(res => {
|
|
that.$api.doRequest('post', '/commonUser/editUserInfo', that.deptListurl).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- // this.$api.msg('修改成功!')
|
|
|
|
- var _student = wx.getStorageSync('userInfo');
|
|
|
|
- _student.userName = that.nickname;
|
|
|
|
- wx.setStorageSync('userInfo', _student);
|
|
|
|
-
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/user/setUp`
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // this.$api.msg('修改成功!')
|
|
|
|
+ var _student = uni.getStorageSync('userInfo');
|
|
|
|
+ _student.userName = that.nickname;
|
|
|
|
+ uni.setStorageSync('userInfo', _student);
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|