uni-app修改本地存储中key的单个值

let _userInfo = uni.getStorageSync('userInfo');
_userInfo.nickName = res.data.nickName;
uni.setStorageSync('userInfo',_userInfo);

你可能感兴趣的:(uni-app)