5 changed files with 51 additions and 6 deletions
-
27src/components/Formula.vue
-
6src/mock/command.js
-
2src/store/index.js
-
16src/store/modules/formula.js
-
6src/store/modules/websocket.js
@ -0,0 +1,16 @@ |
|||||
|
import { defineStore } from 'pinia' |
||||
|
export const useFormulaStore = defineStore({ |
||||
|
id: 'formula', // id必填,且需要唯一
|
||||
|
// state
|
||||
|
state: () => { |
||||
|
return { |
||||
|
formulaList: [], |
||||
|
} |
||||
|
}, |
||||
|
// actions
|
||||
|
actions: { |
||||
|
updateFormulaList(formulaList) { |
||||
|
this.formulaList = formulaList |
||||
|
}, |
||||
|
}, |
||||
|
}) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue