diff --git a/src/components/Formula.vue b/src/components/Formula.vue index 37fa4e3..0c5a7d1 100644 --- a/src/components/Formula.vue +++ b/src/components/Formula.vue @@ -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 = () => { diff --git a/src/pages/Home.vue b/src/pages/Home.vue index 5e8d339..ff03c35 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -216,7 +216,7 @@ " /> - +

IP {{ settingStore.deviceIp }}