mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
fix:修复商店无法调起apm软件的问题
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user