清除缓存js
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user