diff --git a/src/pages/index.vue b/src/pages/index.vue index f78bfec..215d070 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -192,6 +192,18 @@ thchMenus.value = store.thchMenus }) onShow(async () => { + uni.getPushClientId({ + success: (res) => { + console.log(res); + console.log(res.cid); + }, + fail(err) { + console.log(err) + } + }) + uni.onPushMessage((res)=>{ + console.log(res) + }) if (getAccessToken()) { getCounts1() getToDoCountsByUser1()