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

28 lines
554 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. import { defineStore } from 'pinia'
  2. export const useAuditStore = defineStore({
  3. id: 'audit', // id必填,且需要唯一
  4. // state
  5. state: () => {
  6. return {
  7. auditInfoList: [],
  8. totalPage: 0,
  9. total: 0,
  10. page: 1,
  11. }
  12. },
  13. // actions
  14. actions: {
  15. updateTotalPage(totalPage) {
  16. this.totalPage = totalPage
  17. },
  18. updateTotal(total) {
  19. this.total = total
  20. },
  21. updatePage(page) {
  22. this.page = page
  23. },
  24. updateAuditList(auditInfoList) {
  25. this.auditInfoList = auditInfoList
  26. },
  27. },
  28. })