管道式消毒机
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

2 years ago
  1. import { defineStore } from 'pinia'
  2. export const useHistoryStore = defineStore({
  3. id: 'history', // id必填,且需要唯一
  4. // state
  5. state: () => {
  6. return {
  7. historyDataList: [],
  8. detailData: [],
  9. }
  10. },
  11. // actions
  12. actions: {
  13. updateHistoryDataList(historyDataList) {
  14. this.historyDataList = historyDataList
  15. },
  16. updateDetailData(detailData) {
  17. this.detailData = detailData
  18. },
  19. },
  20. })