
* feat: 锁屏功能 * feat: 锁屏样式调整 * feat: complete the lock-screen screen and support shortcut keys and preference configuration --------- Co-authored-by: vince <vince292007@gmail.com>
20 lines
477 B
TypeScript
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';
|