可修改线程
This commit is contained in:
+14
@@ -47,3 +47,17 @@ export async function flushIndex() {
|
||||
return data
|
||||
}
|
||||
|
||||
export async function fetchWorkers() {
|
||||
const { data } = await axios.get(`${BASE}/admin/workers`, {
|
||||
timeout: 10000,
|
||||
})
|
||||
return data
|
||||
}
|
||||
|
||||
export async function setWorkers(n) {
|
||||
const { data } = await axios.post(`${BASE}/admin/workers`, { workers: n }, {
|
||||
timeout: 10000,
|
||||
})
|
||||
return data
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user