清除缓存js
This commit is contained in:
parent
626542e51b
commit
0e294f2afd
16
发送请求清空指定表单的缓存.js
Normal file
16
发送请求清空指定表单的缓存.js
Normal 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();
|
Loading…
x
Reference in New Issue
Block a user