mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-14 10:30:35 +08:00
fix: 程序状态
This commit is contained in:
@@ -11,6 +11,8 @@ export const appStop = () => axios.get('api/v1/stop');
|
||||
|
||||
/** 状态 */
|
||||
export async function appStatus() {
|
||||
const { data } = await axios.get<boolean>('api/v1/status');
|
||||
return data;
|
||||
const { data } = await axios.get<{ status: 'stop' | 'running' }>(
|
||||
'api/v1/status'
|
||||
);
|
||||
return data.status !== 'stop';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user