diff --git a/src/views/formula/index.vue b/src/views/formula/index.vue index da6182d..0caab72 100644 --- a/src/views/formula/index.vue +++ b/src/views/formula/index.vue @@ -8,11 +8,11 @@ import { ref } from 'vue' const formRef = ref() const onAddFormula = () => { selectedIndexRest() - formRef.value?.formRef.value.addFormula() + formRef.value?.addFormula() } const tableRef = ref() const selectedIndexRest = () => { - tableRef.value?.tableRef.value.selectedIndexRest() // 调用子组件方法 + tableRef.value?.selectedIndexRest() // 调用子组件方法 } @@ -47,33 +47,33 @@ const selectedIndexRest = () => {