UNPKG

@antv/dumi-theme-antv

Version:
6 lines 141 B
/** * 统一去掉中英文前缀 */ export function getPurePathname(pathname) { return pathname.replace('/zh', '').replace('/en', ''); }