Browse Source

列表挂载强制舒心列表

master
王梦远 2 weeks ago
parent
commit
c6c2cd7be6
  1. 5
      src/components/formula/FormulaTable.vue

5
src/components/formula/FormulaTable.vue

@ -51,13 +51,8 @@ watch(() => selectedIndex.value, () => {
} }
}) })
const initFormulaList = () => { const initFormulaList = () => {
if (formulaStore.formulaList && formulaStore.formulaList.length) {
recipes.value = formulaStore.formulaList as Formula.FormulaItem[]
}
else {
formulaStore.initFormulaList() formulaStore.initFormulaList()
} }
}
const selectRecipe = (item: Formula.FormulaItem, index: number) => { const selectRecipe = (item: Formula.FormulaItem, index: number) => {
selectedIndex.value = index selectedIndex.value = index
formulaStore.updateSelectedIndex(index) formulaStore.updateSelectedIndex(index)

Loading…
Cancel
Save