新增上下限模式

This commit is contained in:
2026-04-21 10:03:36 +08:00
parent 8d9aa4718d
commit 39020c3171
3 changed files with 189 additions and 3 deletions

View File

@@ -106,6 +106,14 @@ export function usePythonBridge() {
await window.electronAPI.tk.controlTask(data);
};
const controlCheckTask = async (isRunning, model) => {
if (!inElectron) return { success: false, error: 'Not in Electron' };
return await window.electronAPI.tk.controlCheckTask({
isRunning: Boolean(isRunning),
model: Boolean(model)
});
};
const getBrotherInfo = async () => {
if (!inElectron) return { total: 0, valid: 0 };
const res = await window.electronAPI.tk.getBrotherInfo();
@@ -242,6 +250,7 @@ export function usePythonBridge() {
getTkLoginStatus,
// New Fan Workbench exports
controlTask,
controlCheckTask,
getBrotherInfo,
Specifystreaming,
storageSetInfos,