From 4a836815f12e8ba717702cc8ed431e1b4f96134c Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 25 四月 2025 13:55:34 +0800 Subject: [PATCH] 新增内部线索相关管理逻辑 --- src/api/grid/gridInfoApi.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/grid/gridInfoApi.js b/src/api/grid/gridInfoApi.js index 824675e..02ba652 100644 --- a/src/api/grid/gridInfoApi.js +++ b/src/api/grid/gridInfoApi.js @@ -7,7 +7,7 @@ */ fetchGridList(schemeId) { return $clue.get(`grid/info/fetch?id=${schemeId}`).then((res) => { - return getGridRecordList(res); + return getGridRecordList(res.data); }); }, @@ -17,15 +17,17 @@ */ createGrid(gridInfo) { return $clue.post(`grid/info/create`, gridInfo).then((res) => { - return getGridRecord(res); + return getGridRecord(res.data); }); }, /** * 鏇存柊缃戞牸 - * @param {Object} gridInfo + * @param {Object} gridInfo */ updateGrid(gridInfo) { - return $clue.post(`grid/info/update`, gridInfo) + return $clue + .post(`grid/info/update`, gridInfo) + .then((res) => res.data); } }; -- Gitblit v1.9.3