Browse Source

Merge branch 'fix' into dev

Jinyao 5 years ago
parent
commit
ed1ae9d523
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/api/devcloud/pipeline.ts
  2. 1 1
      src/components/Menu.vue

+ 1 - 1
src/api/devcloud/pipeline.ts

@@ -62,7 +62,7 @@ export const deleteInstance = (deploymentId: number) => axios.delete(`${DEPLOYME
   },
 });
 
-export const triggerDeployment = (pipeline: PipelinePayload) => axios.post(`${DEPLOYMENT_PREFIX}`, {
+export const triggerDeployment = (pipeline: PipelinePayload) => axios.post(`${DEPLOYMENT_PREFIX}`, null, {
   params: pipeline,
 });
 

+ 1 - 1
src/components/Menu.vue

@@ -141,7 +141,7 @@ export default defineComponent({
         invitedUserId,
       });
       showInviteDrawer.value = false;
-      WorkspaceDispatcher.changeProject(selectedProject.value);
+      if (selectedProject.value.id !== -1) { WorkspaceDispatcher.changeProject(selectedProject.value.id); }
     };
 
     const handleSelect = (index: string) => {