6 changed files with 67 additions and 13 deletions
-
34src/components/Audit.vue
-
9src/mock/command.js
-
8src/pages/Home.vue
-
2src/store/index.js
-
16src/store/modules/audit.js
-
11src/store/modules/websocket.js
@ -0,0 +1,16 @@ |
|||
import { defineStore } from 'pinia' |
|||
export const useAuditStore = defineStore({ |
|||
id: 'audit', // id必填,且需要唯一
|
|||
// state
|
|||
state: () => { |
|||
return { |
|||
auditInfoList: [], |
|||
} |
|||
}, |
|||
// actions
|
|||
actions: { |
|||
updateAuditList(auditInfoList) { |
|||
this.auditInfoList = auditInfoList |
|||
}, |
|||
}, |
|||
}) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue