新增上下限模式
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user