From eeba916b840d8851bc38586fd162358f7ed1941e Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期一, 29 七月 2024 18:10:38 +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