Browse Source

fix:指令修改

master
guoapeng 5 months ago
parent
commit
c199227e26
  1. 2
      src/libs/utils.ts

2
src/libs/utils.ts

@ -38,7 +38,7 @@ export const sendControl = async (params: any, type?: string) => {
socket.init((data: any) => { socket.init((data: any) => {
systemStore.pushSystemList(data) systemStore.pushSystemList(data)
}, 'cmd_response') }, 'cmd_response')
await (type ? control(params) : debugControl(params))
await (type === 'debug' ? debugControl(params) : control(params))
systemStore.updateStreamVisible(true) systemStore.updateStreamVisible(true)
FtMessage.success(`[${cmdName}]已发送`) FtMessage.success(`[${cmdName}]已发送`)
// if (!res.ok) { // if (!res.ok) {

Loading…
Cancel
Save