admin-vben5/apps/web-antd/src/store/index.ts

17 lines
354 B
TypeScript
Raw Normal View History

2024-06-01 23:15:29 +08:00
import type { InitStoreOptions } from '@vben-core/stores';
import { initStore } from '@vben-core/stores';
import type { App } from 'vue';
/**
* @zh_CN pinia
* @param app vue app
*/
async function setupStore(app: App, options: InitStoreOptions) {
const pinia = await initStore(options);
app.use(pinia);
}
export { setupStore };