feat(license): 退出授权 / 释放本实例(确认后 deactivate)

设置→授权 Pro 态管理员可退出:在线 LIC- 先调 opsx deactivate(含 activation_token),成功才清本地;失败保留现状。LICOFF- 仅解本机并提示后台名额可能仍占。禁静默清码。
This commit is contained in:
opsx committed 2026-11-01 03:16:05 +08:00
1 parent f3d27ceb04
commit cec7c6eeaf
10 files changed
+338 -3

No files matched your search

+2
View File
@@ -21,4 +21,6 @@ export interface LicenseInfo {
export const licenseApi = {
status: () => http.get<{ license: LicenseInfo; pro: boolean; features: string[] }>('/system/license'),
activate: (key: string) => http.post<LicenseInfo>('/system/license/activate', { key }),
deactivate: () =>
http.post<{ offlineLocalOnly?: boolean; message?: string }>('/system/license/deactivate'),
}