fix: bug#16436
This commit is contained in:
parent
3577a57c29
commit
1e360775b0
|
@ -149,8 +149,7 @@ const runScript = () => {
|
|||
...props.virtualRule,
|
||||
},
|
||||
properties: _properties || [],
|
||||
})
|
||||
ws.value.subscribe((data: any) => {
|
||||
}).subscribe((data: any) => {
|
||||
ruleEditorStore.state.log.push({ time: new Date().getTime(), content: JSON.stringify(data.payload) });
|
||||
if (props.virtualRule?.type !== 'window') {
|
||||
stopAction()
|
||||
|
@ -179,8 +178,7 @@ const runScriptAgain = async () => {
|
|||
...props.virtualRule,
|
||||
},
|
||||
properties: _properties || [],
|
||||
})
|
||||
wsAgain.value.subscribe((data: any) => { })
|
||||
}).subscribe((data: any) => { })
|
||||
}
|
||||
|
||||
const beginAction = () => {
|
||||
|
|
|
@ -209,8 +209,7 @@ const runScript = () => {
|
|||
},
|
||||
properties: _properties || [],
|
||||
},
|
||||
);
|
||||
ws.value.subscribe((data: any) => {
|
||||
).subscribe((data: any) => {
|
||||
ruleEditorStore.state.log.push({
|
||||
time: new Date().getTime(),
|
||||
content: JSON.stringify(data.payload),
|
||||
|
@ -256,8 +255,7 @@ const runScriptAgain = async () => {
|
|||
},
|
||||
properties: _properties || [],
|
||||
},
|
||||
);
|
||||
wsAgain.value.subscribe((data: any) => {});
|
||||
).subscribe((data: any) => {});
|
||||
};
|
||||
|
||||
const getTime = () => {
|
||||
|
@ -274,8 +272,6 @@ const beginAction = () => {
|
|||
};
|
||||
const stopAction = () => {
|
||||
isBeginning.value = true;
|
||||
console.log(ws.value)
|
||||
debugger
|
||||
if (ws.value) {
|
||||
ws.value.unsubscribe?.();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue