From 6f89da43626d8118f52e7bb55572ce0082863348 Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Fri, 26 Jun 2026 12:25:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(push):=20Token=20=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E6=8C=89=E9=92=AE=20+=20romVersion=20=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - PushManagementView: 系统版本列新增 romVersion 子行显示(灰色小字) - Token 预览列新增"复制"按钮,点击后调管理端接口获取完整 token 并复制到剪贴板 - DeviceInfo 接口添加 romVersion 字段 - pushAdminApi 新增 getDeviceToken 方法 Co-Authored-By: Claude Sonnet 4.6 --- tenant-platform/src/api/push.ts | 7 +++++ .../src/views/push/PushManagementView.vue | 29 +++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/tenant-platform/src/api/push.ts b/tenant-platform/src/api/push.ts index 69d8008..5518cd7 100644 --- a/tenant-platform/src/api/push.ts +++ b/tenant-platform/src/api/push.ts @@ -9,6 +9,7 @@ export interface DeviceInfo { brand: string | null model: string | null osVersion: string | null + romVersion: string | null appVersion: string | null receivePush: boolean lastLoginAt: string | null @@ -95,4 +96,10 @@ export const pushAdminApi = { '/push/admin/operation-logs', { params: { appKey, page, size } }, ) }, + + getDeviceToken(appKey: string, deviceId: string) { + return client.get<{ data: { token: string } }>(`/push/admin/devices/${deviceId}/token`, { + params: { appKey }, + }) + }, } diff --git a/tenant-platform/src/views/push/PushManagementView.vue b/tenant-platform/src/views/push/PushManagementView.vue index 393fa29..783e1b5 100644 --- a/tenant-platform/src/views/push/PushManagementView.vue +++ b/tenant-platform/src/views/push/PushManagementView.vue @@ -74,9 +74,23 @@ - + + + - + + +