2024-07-20 08:31:05 +08:00
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
2024-07-23 00:03:59 +08:00
|
|
|
import { useCoreTabbarStore } from '@vben/stores';
|
2024-07-20 08:31:05 +08:00
|
|
|
|
|
|
|
export function useRefresh() {
|
|
|
|
const router = useRouter();
|
|
|
|
const coreTabbarStore = useCoreTabbarStore();
|
|
|
|
|
|
|
|
function refresh() {
|
|
|
|
coreTabbarStore.refresh(router);
|
|
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
|
|
refresh,
|
|
|
|
};
|
|
|
|
}
|