mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: Fix API to prevent frontend code startup errors (#11559)
This commit is contained in:
@@ -354,4 +354,10 @@ export namespace App {
|
||||
status: string;
|
||||
imagePrefix: string;
|
||||
}
|
||||
|
||||
export interface InstallAppToNodes extends AppInstall {
|
||||
nodes: string[];
|
||||
appKey: string;
|
||||
version: string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user