|
|
|
@ -27,7 +27,6 @@ function handleError(e: Error) {
|
|
|
|
|
export function useGo(_router?: Router) {
|
|
|
|
|
const { push, replace } = _router || useRouter()
|
|
|
|
|
function go(opt: RouteLocationRawEx = PageEnum.BASE_HOME, isReplace = false) {
|
|
|
|
|
console.log('go' ,opt ,isReplace);
|
|
|
|
|
|
|
|
|
|
if (!opt) {
|
|
|
|
|
return
|
|
|
|
|