mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-27 16:03:24 +08:00
17 lines
304 B
TypeScript
17 lines
304 B
TypeScript
import { useRouter } from 'vue-router';
|
|
|
|
import { useCoreTabbarStore } from '@vben-core/stores';
|
|
|
|
export function useRefresh() {
|
|
const router = useRouter();
|
|
const coreTabbarStore = useCoreTabbarStore();
|
|
|
|
function refresh() {
|
|
coreTabbarStore.refresh(router);
|
|
}
|
|
|
|
return {
|
|
refresh,
|
|
};
|
|
}
|