Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3dfbee3

Browse files
committed
update deploy app endpoint for the new plugin
1 parent9c7c221 commit3dfbee3

File tree

1 file changed

+5
-4
lines changed
  • client/packages/lowcoder/src/pages/setting/environments/services

1 file changed

+5
-4
lines changed

‎client/packages/lowcoder/src/pages/setting/environments/services/apps.service.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ export async function getMergedWorkspaceApps(
109109
exportconstdeployApp=async(params:DeployAppParams):Promise<boolean>=>{
110110
try{
111111
constresponse=awaitaxios.post(
112-
`/api/plugins/enterprise/deploy`,
112+
`/api/plugins/enterprise/app/deploy`,
113113
null,
114114
{
115115
params:{
116+
applicationId:params.applicationId,
116117
envId:params.envId,
117118
targetEnvId:params.targetEnvId,
118-
applicationId:params.applicationId,
119119
updateDependenciesIfNeeded:params.updateDependenciesIfNeeded??false,
120120
publishOnTarget:params.publishOnTarget??false,
121121
publicToAll:params.publicToAll??false,
@@ -126,7 +126,8 @@ export const deployApp = async (params: DeployAppParams): Promise<boolean> => {
126126

127127
returnresponse.status===200;
128128
}catch(error){
129-
console.error('Error deploying app:',error);
130-
throwerror;
129+
consterrorMessage=errorinstanceofError ?error.message :'Failed to deploy app';
130+
// Don't show message directly, let the calling component handle it
131+
thrownewError(errorMessage);
131132
}
132133
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp