You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
437 B
20 lines
437 B
import { defineStore } from 'pinia'
|
|
export const useFormulaStore = defineStore({
|
|
id: 'formula', // id必填,且需要唯一
|
|
// state
|
|
state: () => {
|
|
return {
|
|
formulaList: [],
|
|
currentFormula: {},
|
|
}
|
|
},
|
|
// actions
|
|
actions: {
|
|
updateCurrentFormula(currentFormula) {
|
|
this.currentFormula = currentFormula
|
|
},
|
|
updateFormulaList(formulaList) {
|
|
this.formulaList = formulaList
|
|
},
|
|
},
|
|
})
|