Jelajahi Sumber

add route to configpatch

zhanghongxin 1 tahun lalu
induk
melakukan
eb2b7271ea
1 mengubah file dengan 16 tambahan dan 1 penghapusan
  1. 16 1
      src/views/Project/Pipeline.vue

+ 16 - 1
src/views/Project/Pipeline.vue

@@ -372,7 +372,7 @@ import { InterfaceTestAPI, PipelineAPI } from '@/api';
 
 
 import { formatter } from '@/utils/time';
 import { formatter } from '@/utils/time';
 import { copy } from '@/utils/clipboard';
 import { copy } from '@/utils/clipboard';
-import { ElMessage } from 'element-plus';
+import { ElMessage, ElMessageBox } from 'element-plus';
 
 
 export default {
 export default {
   data() {
   data() {
@@ -570,6 +570,21 @@ export default {
       this.loading = true;
       this.loading = true;
       this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
       this.pipelines = await PipelineAPI.getPipelinesByProjectId(this.$store.state.workspace.currentProjectId);
       this.loading = false;
       this.loading = false;
+      ElMessageBox.alert(
+        '编辑流水线配置成功,请前往配置文件界面完成项目配置修改',
+        '提示',
+        {
+          confirmButtonText: '确定',
+          type: 'success',
+          showClose: true,
+          showCancelButton: false,
+          callback: (action) => {
+            if (action === 'confirm') {
+              this.$router.push(`/project/${this.$store.state.workspace.currentProjectId}/configPatch`);
+            }
+          },
+        },
+      );
     },
     },
     async handlePipelineCreateConfirm() {
     async handlePipelineCreateConfirm() {
       const regExp = /^[a-z]([a-z]|-){2,29}/;
       const regExp = /^[a-z]([a-z]|-){2,29}/;