提交 81229b53 作者: 方治民

chore: 优化权限监听/停止函数命名

上级 edbd7400
......@@ -6,15 +6,13 @@
// import * as Push from '@/utils/push'
// 监听权限获取
const { listen, stop } = usePermissions()
const { listen: startPermissionListener, stop: stopPermissionListener } = usePermissions()
onLaunch(() => {
console.log('App Launch')
// #ifdef APP-PLUS
// 监听权限获取
listen()
// #endif
startPermissionListener()
// 清除消息角标
// Push.setBadge(0)
......@@ -34,7 +32,7 @@
onExit(() => {
// 停用监听权限
stop()
stopPermissionListener()
})
onShow(() => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论