diff --git a/uni_modules/uni-id-pages-x/store.uts b/uni_modules/uni-id-pages-x/store.uts index 4b4483c7663c5d26412b08db378cc67ed2f9d7f9..770d1793fb0bf3a45193dc61a57495a4c0ea628d 100644 --- a/uni_modules/uni-id-pages-x/store.uts +++ b/uni_modules/uni-id-pages-x/store.uts @@ -79,11 +79,11 @@ export const mutations = { param.toMap().forEach((value, key) => { state.userInfo[key] = value }) - - usersCollection - .doc(user_id) - .update(param) - + if(param.mobile == "" || param.mobile == null){ + usersCollection + .doc(user_id) + .update(param) + } afterUpdateUserInfo() } }