mirror of
https://github.com/Chanzhaoyu/chatgpt-web.git
synced 2025-07-22 12:41:56 +00:00
feat: 预设 pinia 相关文件
This commit is contained in:
12
src/store/modules/history/index.ts
Normal file
12
src/store/modules/history/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
interface HistoryState {
|
||||
list: any[]
|
||||
}
|
||||
|
||||
export const useHistoryStore = defineStore('history-store', {
|
||||
state: (): HistoryState => ({
|
||||
list: [],
|
||||
}),
|
||||
actions: {},
|
||||
})
|
Reference in New Issue
Block a user