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
20 lines
437 B
import { defineStore } from 'pinia'
|
|
export const useHistoryStore = defineStore({
|
|
id: 'history', // id必填,且需要唯一
|
|
// state
|
|
state: () => {
|
|
return {
|
|
historyDataList: [],
|
|
detailData: [],
|
|
}
|
|
},
|
|
// actions
|
|
actions: {
|
|
updateHistoryDataList(historyDataList) {
|
|
this.historyDataList = historyDataList
|
|
},
|
|
updateDetailData(detailData) {
|
|
this.detailData = detailData
|
|
},
|
|
},
|
|
})
|