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