feat: 预设 pinia 相关文件

This commit is contained in:
ChenZhaoYu
2023-02-14 10:51:47 +08:00
parent 797cc7461b
commit b6e5c59a9c
9 changed files with 102 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
import { defineStore } from 'pinia'
interface HistoryState {
list: any[]
}
export const useHistoryStore = defineStore('history-store', {
state: (): HistoryState => ({
list: [],
}),
actions: {},
})