可修改线程

This commit is contained in:
2026-04-09 13:16:29 +08:00
parent 969b9a7c7e
commit 80108d028a
4 changed files with 109 additions and 25 deletions
+14
View File
@@ -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
}