From d17d3ac3da20d054223a0b1b31909bd0d9caad4d Mon Sep 17 00:00:00 2001 From: liudong <liudong> Date: 星期一, 29 七月 2024 19:48:42 +0800 Subject: [PATCH] 知识库页面解析方法接口调用开发 --- src/api/kbList.ts | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/api/kbList.ts b/src/api/kbList.ts index 9f1afc9..4a63de4 100644 --- a/src/api/kbList.ts +++ b/src/api/kbList.ts @@ -64,9 +64,24 @@ // 鏂囨。涓婁紶鎺ュ彛 +// export function kbdocumentupload(params) { +// return axios.post('/api/v1/document/upload', params); +// } + export function kbdocumentupload(params) { - return axios.post('/api/v1/document/upload', params); + const config = { + headers: { + 'Content-Type': 'application/x-www-form-urlencoded', + // token: token, + }, + } + return axios.post( + '/api/v1/document/upload', + params, + config + ) } + // 鏂囨。鍚姩/鍙栨秷瑙f瀽鎺ュ彛 @@ -90,7 +105,10 @@ return axios.post('/api/v1/document/change_parser', params); } - + // 鏂囨。鍚敤/绂佺敤鎺ュ彛 +export function kbdocumentchangeStatus(params) { + return axios.post('/api/v1/document/change_status', params); +} -- Gitblit v1.8.0