From 6b988bd582bfcd17fee48c476a5a6e5cc172b0d5 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期三, 12 三月 2025 10:08:33 +0800 Subject: [PATCH] dev-2 --- src/api/workflow/model/index.ts | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/api/workflow/model/index.ts b/src/api/workflow/model/index.ts index f58cdd3..1ca8b19 100644 --- a/src/api/workflow/model/index.ts +++ b/src/api/workflow/model/index.ts @@ -22,7 +22,7 @@ */ export const getInfo = (id: string): AxiosPromise<ModelForm> => { return request({ - url: '/workflow/model/getInfo/'+id, + url: '/workflow/model/getInfo/' + id, method: 'get' }); }; @@ -89,3 +89,16 @@ method: 'post' }); }; + +/** + * 澶嶅埗妯″瀷 + * @param data + * @returns {*} + */ +export const copyModel = (data: ModelForm): AxiosPromise<void> => { + return request({ + url: '/workflow/model/copyModel', + method: 'post', + data: data + }); +}; -- Gitblit v1.9.3