fix: Fix API to prevent frontend code startup errors (#11559)

This commit is contained in:
CityFun
2026-01-05 07:47:42 +00:00
committed by GitHub
parent 2ba1e2e22e
commit 0c9e551492
3 changed files with 11 additions and 1 deletions
+6
View File
@@ -354,4 +354,10 @@ export namespace App {
status: string;
imagePrefix: string;
}
export interface InstallAppToNodes extends AppInstall {
nodes: string[];
appKey: string;
version: string;
}
}
+4
View File
@@ -136,3 +136,7 @@ export function getAppIconUrl(appId: number, node?: string): string {
const params = node ? `?operateNode=${node}` : '';
return `${baseURL}/apps/icon/${appId}${params}`;
}
export const installAppToNodes = (param: App.InstallAppToNodes) => {
return http.post(`/core/xpack/sync/app/install`, param);
};
@@ -29,7 +29,7 @@ import { newUUID } from '@/utils/util';
import { routerToName } from '@/utils/router';
import TaskLog from '@/components/log/task/index.vue';
import i18n from '@/lang';
import { installAppToNodes } from '@/xpack/api/modules/appstore';
import { installAppToNodes } from '@/api/modules/app';
const router = useRouter();
const open = ref(false);