fix:修复商店无法调起apm软件的问题

This commit is contained in:
2026-03-11 16:08:51 +08:00
parent 19b96c93f6
commit 16f7b62491
4 changed files with 18 additions and 9 deletions

View File

@@ -913,12 +913,12 @@ const closeDownloadDetail = () => {
currentDownload.value = null;
};
const openDownloadedApp = (pkgname: string) => {
const openDownloadedApp = (pkgname: string, origin?: "spark" | "apm") => {
// const encodedPkg = encodeURIComponent(download.pkgname);
// openApmStoreUrl(`apmstore://launch?pkg=${encodedPkg}`, {
// fallbackText: `打开应用: ${download.pkgname}`
// });
window.ipcRenderer.invoke("launch-app", pkgname);
window.ipcRenderer.invoke("launch-app", { pkgname, origin });
};
const loadCategories = async () => {