refactor: Separate store

This commit is contained in:
vben
2024-07-30 21:10:28 +08:00
parent cf0ec053e4
commit 89dcf522f5
40 changed files with 338 additions and 345 deletions

View File

@@ -1,13 +1,13 @@
import { useRouter } from 'vue-router';
import { useCoreTabbarStore } from '@vben/stores';
import { useTabbarStore } from '@vben/stores';
export function useRefresh() {
const router = useRouter();
const coreTabbarStore = useCoreTabbarStore();
const tabbarStore = useTabbarStore();
function refresh() {
coreTabbarStore.refresh(router);
tabbarStore.refresh(router);
}
return {