Browse Source

fix: 修复bpm相关bug

lizhixian 6 tháng trước cách đây
mục cha
commit
2511f32c86
2 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 0 1
      src/api/bpm/model/index.ts
  2. 4 1
      src/views/bpm/model/form/index.vue

+ 0 - 1
src/api/bpm/model/index.ts

@@ -76,4 +76,3 @@ export const deployModel = async (id: number) => {
 export const cleanModel = async (id: number) => {
   return await request.delete({ url: '/bpm/model/clean?id=' + id })
 }
-

+ 4 - 1
src/views/bpm/model/form/index.vue

@@ -337,7 +337,10 @@ const handleDeploy = async () => {
     message.success('发布成功')
     // 返回列表页
     await router.push({ name: 'BpmModel' })
-  } catch (error: any) {}
+  } catch (error: any) {
+    console.error('发布失败:', error)
+    message.warning(error.message || '发布失败')
+  }
 }
 
 /** 步骤切换处理 */