diff --git a/src/libs/utils.ts b/src/libs/utils.ts index 1abe5ca..74e6b35 100644 --- a/src/libs/utils.ts +++ b/src/libs/utils.ts @@ -38,7 +38,7 @@ export const sendControl = async (params: any, type?: string) => { socket.init((data: any) => { systemStore.pushSystemList(data) }, 'cmd_response') - await (type ? control(params) : debugControl(params)) + await (type === 'debug' ? debugControl(params) : control(params)) systemStore.updateStreamVisible(true) FtMessage.success(`[${cmdName}]已发送`) // if (!res.ok) {