From 68a56a3575f60ddd367873730a22ed9a90b65711 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Fri, 26 Jun 2026 13:21:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(push):=20=E6=B5=8B=E8=AF=95=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=94=AF=E6=8C=81=E9=80=89=E6=8B=A9=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=EF=BC=8C=E9=BB=98=E8=AE=A4=E6=9C=80=E8=BF=91?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 设备选择器显示全部设备,预选最近登录项 - sent=false && targetCount>0 时显示厂商拒绝提示 - testOffline API 新增 deviceId 参数 Co-Authored-By: Claude Sonnet 4.6 --- tenant-platform/src/api/push.ts | 3 ++- .../src/views/push/PushManagementView.vue | 24 ++++++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/tenant-platform/src/api/push.ts b/tenant-platform/src/api/push.ts index 5518cd7..627e8f7 100644 --- a/tenant-platform/src/api/push.ts +++ b/tenant-platform/src/api/push.ts @@ -81,10 +81,11 @@ export const pushAdminApi = { }) }, - testOffline(appKey: string, userId: string, title: string, body: string, payload?: string) { + testOffline(appKey: string, userId: string, title: string, body: string, payload?: string, deviceId?: string | null) { return client.post<{ data: TestPushResult }>('/push/admin/test-offline', { appKey, userId, + deviceId: deviceId ?? null, title, body, payload: payload ?? null, diff --git a/tenant-platform/src/views/push/PushManagementView.vue b/tenant-platform/src/views/push/PushManagementView.vue index 783e1b5..8875832 100644 --- a/tenant-platform/src/views/push/PushManagementView.vue +++ b/tenant-platform/src/views/push/PushManagementView.vue @@ -106,6 +106,17 @@ + + + + + + @@ -126,8 +137,12 @@