wupengfei
10 天以前 03ffdd67fc4c40f3e9443931a0aa55e508182873
src/utils/common/common.ts
@@ -106,3 +106,12 @@
export function filterNumbersFromString(str: string) {
  return str.replace(/\D/g, '');
}
export function formatRoleName(roleName: string) {
  let lastUnderscoreIndex = roleName.lastIndexOf('_');
  if (lastUnderscoreIndex !== -1) {
    roleName = roleName.substring(0, lastUnderscoreIndex);
  }
  return roleName;
}