/** * @license * Copyright Stbui All Rights Reserved. * https://github.com/stbui/prophet */ /** * 跳转指定页面路由 * * @example * * import { useRedirect } from '@stbui/prophet-core'; * * const redirect = useRedirect(); * redirect('list', '/users'); * redirect('edit', '/users', 1); * redirect(false); * redirect((basePath, id, data) =>{ return `${basePath}/${id}?filter=${data}` }, '/users', 1,{username: 'stui'}) */ declare const useRedirect: () => (redirectTo: any, basePath?: string, id?: any, data?: any) => void; export default useRedirect;