提交 273abcfa 编写于 作者: fxy060608's avatar fxy060608

feat(app): createPushMessage

上级 2c587b54
......@@ -16775,9 +16775,6 @@ const getUniverifyManager = defineSyncApi(API_GET_UNIVERIFY_MANAGER, () => {
const createPushMessage = defineAsyncApi(API_CREATE_PUSH_MESSAGE, (opts, { resolve, reject }) => {
const setting = getAppAuthorizeSetting();
if (!hasOwn$1(setting, 'notificationAuthorized')) {
return reject(`missing push module`);
}
if (setting.notificationAuthorized !== 'authorized') {
return reject(setting.notificationAuthorized);
}
......
import { hasOwn, extend } from '@vue/shared'
import { extend } from '@vue/shared'
import {
API_CREATE_PUSH_MESSAGE,
API_TYPE_CREATE_PUSH_MESSAGE,
......@@ -10,9 +10,6 @@ export const createPushMessage = defineAsyncApi<API_TYPE_CREATE_PUSH_MESSAGE>(
API_CREATE_PUSH_MESSAGE,
(opts, { resolve, reject }) => {
const setting = getAppAuthorizeSetting()
if (!hasOwn(setting, 'notificationAuthorized')) {
return reject(`missing push module`)
}
if (setting.notificationAuthorized !== 'authorized') {
return reject(setting.notificationAuthorized)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册