useConfigStore.js 326 B

1234567891011121314151617
  1. import {defineStore} from "pinia";
  2. export const useConfigStore = defineStore('config', {
  3. state: () => ({
  4. all: {},
  5. mac: [],
  6. mType: 3, // 3 BMI(默认);4 肺活量;5 坐位体前屈;
  7. }),
  8. getters: {},
  9. actions: {
  10. clear() {
  11. this.all = {}
  12. this.mac = []
  13. this.mType = -1
  14. },
  15. }
  16. })