清除缓存js

This commit is contained in:
wintsa 2024-12-17 14:29:15 +08:00
parent 626542e51b
commit 0e294f2afd

View File

@ -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();