diff --git a/scr/food/pages/login/login.js b/scr/food/pages/login/login.js index 47d4c41..bc98f42 100644 --- a/scr/food/pages/login/login.js +++ b/scr/food/pages/login/login.js @@ -30,6 +30,7 @@ Page({ wx.setStorageSync('avatarUrl', avatarUrl) wx.setStorageSync('nickName', nickName) console.log('成功',res) + wx.cloud.database().collection('user').add({ data: { userInfo:user,