From 9836d6d9bde266c1e79333d505e1f218567e7ffe Mon Sep 17 00:00:00 2001 From: 月夜 <768242801@qq.com> Date: 星期一, 11 十一月 2024 15:10:24 +0800 Subject: [PATCH] 优化:字典缓存使用Map代替Array,更高效 --- src/api/workflow/model/index.ts | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/workflow/model/index.ts b/src/api/workflow/model/index.ts index 56f7fed..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' }); }; @@ -101,4 +101,4 @@ method: 'post', data: data }); -}; \ No newline at end of file +}; -- Gitblit v1.9.3