|
@ -3,7 +3,7 @@ import * as React from 'react'; |
|
|
import useLocale from './useLocale'; |
|
|
import useLocale from './useLocale'; |
|
|
|
|
|
|
|
|
function clearPath(path: string) { |
|
|
function clearPath(path: string) { |
|
|
return path.replace('-cn', ''); |
|
|
return path.replace('-cn', '').replace(/\/$/, ''); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export default function useLocation() { |
|
|
export default function useLocation() { |
|
|