admin-vben5/apps/web-antd/src/store/index.ts
Laychen 06f5d5686d
feat: add the ability to lock the screen (#30)
* feat: 锁屏功能

* feat: 锁屏样式调整

* feat: complete the lock-screen screen and support shortcut keys and preference configuration

---------

Co-authored-by: vince <vince292007@gmail.com>
2024-07-12 12:14:09 +08:00

20 lines
477 B
TypeScript

import type { InitStoreOptions } from '@vben-core/stores';
import type { App } from 'vue';
import { initStore, storeToRefs } from '@vben-core/stores';
/**
* @zh_CN 初始化pinia
* @param app vue app 实例
*/
async function setupStore(app: App, options: InitStoreOptions) {
const pinia = await initStore(options);
app.use(pinia);
}
export { setupStore, storeToRefs };
export { useAccessStore } from './modules/access';
export { useAppStore } from './modules/app';