From 6b5ec4e3fddda9d4fe51df4c096f2a98d7d34b32 Mon Sep 17 00:00:00 2001 From: anne-xml Date: Mon, 30 Dec 2024 15:54:13 +0800 Subject: [PATCH] Update store.uts --- uni_modules/uni-id-pages-x/store.uts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/uni_modules/uni-id-pages-x/store.uts b/uni_modules/uni-id-pages-x/store.uts index 4b4483c..770d179 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() } } -- GitLab