From 3e359e4550d018035406a97c190b98f83839ba7f Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期五, 13 十二月 2024 10:41:05 +0800 Subject: [PATCH] 1、工作流重做更新 2、@import修改为@use以应对sass升级弃用@import 3、进入系统后自动redirect到home页 --- src/views/bpm/model/editor/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/bpm/model/editor/index.vue b/src/views/bpm/model/editor/index.vue index 29bca71..3e77369 100644 --- a/src/views/bpm/model/editor/index.vue +++ b/src/views/bpm/model/editor/index.vue @@ -58,17 +58,17 @@ } /** 添加/修改模型 */ -const save = async (bpmnXml) => { +const save = async (bpmnXml: string) => { const data = { ...model.value, bpmnXml: bpmnXml // bpmnXml 只是初始化流程图,后续修改无法通过它获得 } as unknown as ModelApi.ModelVO // 提交 if (data.id) { - await ModelApi.updateModel(data) + await ModelApi.updateModelBpmn(data) message.success('修改成功') } else { - await ModelApi.createModel(data) + await ModelApi.updateModelBpmn(data) message.success('新增成功') } // 跳转回去 -- Gitblit v1.9.3