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

9
src/store/index.ts Normal file
View File

@@ -0,0 +1,9 @@
import type { App } from 'vue'
import { createPinia } from 'pinia'
export function setupStore(app: App) {
const store = createPinia()
app.use(store)
}
export * from './modules'