|
|
@ -124,6 +124,12 @@ import { getAllFormulaJSON } from '@/mock/command' |
|
|
|
import { useWebSocketStore, useFormulaStore } from '@/store' |
|
|
|
import { startFormulaJSON } from '@/mock/command' |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
changeTab: { |
|
|
|
type: Function, |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
|
const webSocketStore = useWebSocketStore() |
|
|
|
const formulaStore = useFormulaStore() |
|
|
|
|
|
|
@ -161,7 +167,7 @@ const hideAddSettingModal = () => { |
|
|
|
const runConfig = item => { |
|
|
|
formulaStore.updateCurrentFormula(item) |
|
|
|
webSocketStore.sendCommandMsg(startFormulaJSON(item.id)) |
|
|
|
console.log('run config', item) |
|
|
|
props.changeTab(1) |
|
|
|
} |
|
|
|
|
|
|
|
const addNewPre = () => { |
|
|
|