diff --git a/ops-platform/src/api/ops.ts b/ops-platform/src/api/ops.ts index 07c5366..43c5dd9 100644 --- a/ops-platform/src/api/ops.ts +++ b/ops-platform/src/api/ops.ts @@ -76,14 +76,6 @@ export interface ServiceRequestPage { totalPages: number } -export interface LicenseStatusInfo { - exists: boolean - active?: boolean - maxDevices?: number - registeredDevices?: number - expiresAt?: string | null -} - export interface AppItem { id: string appKey: string @@ -287,10 +279,4 @@ export const opsApi = { sendPushTestOffline: (payload: { appKey: string; userId: string; title: string; body: string; payload?: string }) => client.post<{ data: PushTestResult }>('/ops/push/test-offline', payload), - - getAppLicense: (appKey: string) => - client.get<{ data: LicenseStatusInfo }>(`/ops/apps/${appKey}/license`), - - updateMaxDevices: (appKey: string, maxDevices: number) => - client.put(`/ops/apps/${appKey}/license/max-devices`, { maxDevices }), } diff --git a/ops-platform/src/views/apps/AppDetailView.vue b/ops-platform/src/views/apps/AppDetailView.vue index 9a3d26b..23786a7 100644 --- a/ops-platform/src/views/apps/AppDetailView.vue +++ b/ops-platform/src/views/apps/AppDetailView.vue @@ -31,7 +31,7 @@ - + @@ -48,88 +48,21 @@ - - - - - {{ licenseInfo.registeredDevices ?? '-' }} - - {{ licenseInfo.expiresAt ? fmt(licenseInfo.expiresAt) : '永久' }} - - -
- {{ licenseInfo.maxDevices ?? '-' }} - - 修改 - -
-
- - - 保存 - - 取消 -
-
-
-