提交 | 用户 | age | ||
2f6253 | 1 | import type { App } from 'vue'; |
215d8b | 2 | import { createPinia } from 'pinia'; |
V | 3 | const store = createPinia(); |
e23336 | 4 | |
2f6253 | 5 | export function setupStore(app: App<Element>) { |
陈 | 6 | app.use(store); |
7 | } | |
e23336 | 8 | |
215d8b | 9 | export { store }; |