diff --git a/tenant-platform/src/views/apps/AppDetailView.vue b/tenant-platform/src/views/apps/AppDetailView.vue
index 2dfab14..6068629 100644
--- a/tenant-platform/src/views/apps/AppDetailView.vue
+++ b/tenant-platform/src/views/apps/AppDetailView.vue
@@ -23,6 +23,15 @@
重置
{{ app.description ?? '-' }}
+
+
+
+ 将 license 文件放入应用的 assets/xuqm/ 目录,
+ 调用 XuqmSDK.autoInitialize(context) 即可完成初始化
+
+ 下载 license.xuqm
+
+
@@ -154,9 +163,6 @@
授权管理 →
-
- 下载 License 文件
-
申请开通
diff --git a/tenant-platform/src/views/license/LicenseManagementView.vue b/tenant-platform/src/views/license/LicenseManagementView.vue
index 22616a0..90d3a84 100644
--- a/tenant-platform/src/views/license/LicenseManagementView.vue
+++ b/tenant-platform/src/views/license/LicenseManagementView.vue
@@ -70,7 +70,6 @@
- 下载 License 文件
刷新
@@ -230,30 +229,6 @@ async function reactivateDevice(row: LicenseDevice) {
loadData()
}
-async function downloadLicenseFile() {
- const key = appKey.value
- if (!key) return
- const res = await appApi.downloadLicenseFile(key)
- const disposition = res.headers['content-disposition'] as string | undefined
- const filename = parseFilename(disposition) ?? `${appName.value || key}.xuqmlicense`
- const url = URL.createObjectURL(res.data)
- const link = document.createElement('a')
- link.href = url
- link.download = filename
- document.body.appendChild(link)
- link.click()
- link.remove()
- URL.revokeObjectURL(url)
-}
-
-function parseFilename(disposition?: string) {
- if (!disposition) return null
- const encoded = disposition.match(/filename\*=UTF-8''([^;]+)/i)?.[1]
- if (encoded) return decodeURIComponent(encoded)
- const plain = disposition.match(/filename="?([^";]+)"?/i)?.[1]
- return plain ? decodeURIComponent(plain) : null
-}
-
async function checkServiceEnabled(key: string) {
checkingService.value = true
serviceEnabled.value = null