mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
Introduces backend and frontend support for restarting the worker process from the WebUI. Adds API endpoint, controller, and UI button for process management. Refactors napcat-shell to support master/worker process lifecycle and restart logic.
15 lines
307 B
TypeScript
15 lines
307 B
TypeScript
import { serverRequest } from '@/utils/request';
|
|
|
|
export default class ProcessManager {
|
|
/**
|
|
* 重启进程
|
|
*/
|
|
public static async restartProcess () {
|
|
const data = await serverRequest.post<ServerResponse<{ message: string; }>>(
|
|
'/Process/Restart'
|
|
);
|
|
|
|
return data.data.data;
|
|
}
|
|
}
|