Browse Source

docs: fix getLink logic

pull/37908/head
二货机器人 2 years ago
parent
commit
4c37c04fcc
  1. 2
      .dumi/hooks/useLocation.ts

2
.dumi/hooks/useLocation.ts

@ -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() {

Loading…
Cancel
Save