diff --git a/teamwork/App.vue b/teamwork/App.vue index 7feaf0095102f3fc908c37ff25648af8e0aa20f8..8de74ecb8fc4b63d383d4ac831471d4df0fc4b4f 100644 --- a/teamwork/App.vue +++ b/teamwork/App.vue @@ -1,7 +1,31 @@ diff --git a/teamwork/pages/login/login.vue b/teamwork/pages/login/login.vue index afc37f01e2e75302c63e5614c8b9fda50f797d98..a513db4d169668959347b6ecc5e52c5a4ea46164 100644 --- a/teamwork/pages/login/login.vue +++ b/teamwork/pages/login/login.vue @@ -81,6 +81,13 @@ }) .then(res => { if (res.result.code === 200) { + uniCloud.callFunction({ + name: 'uni-cloud-push', + date: { + uid: res.result.data.userId, + cid: getApp().globalData.push_clientid + } + }) getApp().globalData.userId = res.result.data.userId getApp().globalData.name = res.result.data.name getApp().globalData.type = res.result.data.type