From 2511f32c86a007a94503eeea99ab720a7105a1a6 Mon Sep 17 00:00:00 2001 From: lizhixian <18210040298@163.com> Date: Thu, 13 Feb 2025 14:29:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=BF=AE=E5=A4=8Dbpm=E7=9B=B8?= =?UTF-8?q?=E5=85=B3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/model/index.ts | 1 - src/views/bpm/model/form/index.vue | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/bpm/model/index.ts b/src/api/bpm/model/index.ts index 8caee6f9..63b6af6a 100644 --- a/src/api/bpm/model/index.ts +++ b/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 }) } - diff --git a/src/views/bpm/model/form/index.vue b/src/views/bpm/model/form/index.vue index de32b48c..96ce5b91 100644 --- a/src/views/bpm/model/form/index.vue +++ b/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 || '发布失败') + } } /** 步骤切换处理 */