From 61fd50f2c69c197b86541b41895f468bd24cbfd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=96=E5=A7=90?= <2981176548@qq.com> Date: Sat, 16 Mar 2024 17:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=B3=BB=E7=BB=9F=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/request.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/js/request.js b/src/js/request.js index ae36083..eaba549 100644 --- a/src/js/request.js +++ b/src/js/request.js @@ -653,6 +653,18 @@ const projectGetById = (id, token) => { } +const projectWorkAdd = (data, token) => { + return axios({ + url: api + "/project/work/add" , + method: "post", + data:data, + headers: { + 'Authorization': 'Bearer ' + token, + 'Content-Type': 'application/json;charset=utf-8', + 'Timestamp': getCurrentTimestamp() + } + }) +} /** * 根据项目id获取子系统的所有信息 @@ -725,7 +737,7 @@ export default { projectGetCustom, projectAdd, projectGetById, - + projectWorkAdd, getTagsProjectList, projectWorkGet,