ccjgmwz 3 年之前
父节点
当前提交
ecfb928941
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 6 0
      pages/user/set_nickname.vue
  2. 6 0
      pages/user/set_picture.vue

+ 6 - 0
pages/user/set_nickname.vue

@@ -59,6 +59,12 @@
 														var _student = uni.getStorageSync('userInfo');
 														_student.userName = that.nickname;
 														uni.setStorageSync('userInfo', _student);
+														var name = 'userInfo';
+														var value = _student;
+														that.$store.commit('$uStore', {
+															name,
+															value
+														});
 														uni.navigateBack()
 													},2000)
 												}

+ 6 - 0
pages/user/set_picture.vue

@@ -134,6 +134,12 @@
 															var _student = uni.getStorageSync('userInfo');
 															_student.avatarUrl = that.identityUrl;
 															uni.setStorageSync('userInfo', _student);
+															var name = 'userInfo';
+															var value = _student;
+															that.$store.commit('$uStore', {
+																name,
+																value
+															});
 															// this.$api.msg('修改成功2!')
 															uni.navigateBack({
 																delta:1