This commit is contained in:
六如
2024-12-04 10:07:49 +08:00
parent c407261bd7
commit bd72c334cb

View File

@@ -20,7 +20,7 @@ export const showKeysFormColumns: PlusFormGroupRow[] = [
title: "基本信息", title: "基本信息",
columns: [ columns: [
{ {
label: "AppId", label: "AppId",
prop: "appId", prop: "appId",
labelWidth: 100, labelWidth: 100,
valueType: "text", valueType: "text",
@@ -131,10 +131,11 @@ const downloadTemplate = `AppID:
`; `;
export const downloadIsvKey = () => { export const downloadIsvKey = () => {
const appId = showKeysFormData.value.appId;
let text = downloadTemplate let text = downloadTemplate
.replace("{appId}", showKeysFormData.value.appId) .replace("{appId}", appId)
.replace("{privateKeyIsv}", showKeysFormData.value.privateKeyIsv) .replace("{privateKeyIsv}", showKeysFormData.value.privateKeyIsv)
.replace("{publicKeyPlatform}", showKeysFormData.value.publicKeyPlatform); .replace("{publicKeyPlatform}", showKeysFormData.value.publicKeyPlatform);
downloadText(`key_${new Date().getTime()}.txt`, text); downloadText(`${appId}_${new Date().getTime()}.txt`, text);
}; };