diff --git a/发送请求清空指定表单的缓存.js b/发送请求清空指定表单的缓存.js new file mode 100644 index 0000000..92f5df6 --- /dev/null +++ b/发送请求清空指定表单的缓存.js @@ -0,0 +1,16 @@ + +//需要是oa已经登陆的用户或者是本地服务发起 + +const tmpObj = { tableName: 'uf_oli_dt1' } +const urlencodedBody = new URLSearchParams(tmpObj).toString(); + +const done = await fetch('http://127.0.0.1:8088/api/cleanCache', { + method: 'POST', + headers: { + 'Accept': 'application/json', + 'Content-Type': 'application/json', + }, + body: urlencodedBody, +}) +// 确保响应是文本 +const result1 = await done.text(); \ No newline at end of file