feat: useVisit-export

This commit is contained in:
baiqi 2023-07-11 11:46:52 +08:00 committed by fit2-zhao
parent 01a8a95088
commit 951eb65841
1 changed files with 2 additions and 1 deletions

View File

@ -1,11 +1,12 @@
import { createPinia } from 'pinia'; import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'; import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import useAppStore from './modules/app'; import useAppStore from './modules/app';
import useVisitStore from './modules/app/visit';
import useUserStore from './modules/user'; import useUserStore from './modules/user';
import useTabBarStore from './modules/tab-bar'; import useTabBarStore from './modules/tab-bar';
import { debouncePlugin } from './plugins'; import { debouncePlugin } from './plugins';
const pinia = createPinia().use(debouncePlugin).use(piniaPluginPersistedstate); const pinia = createPinia().use(debouncePlugin).use(piniaPluginPersistedstate);
export { useAppStore, useUserStore, useTabBarStore }; export { useAppStore, useUserStore, useTabBarStore, useVisitStore };
export default pinia; export default pinia;