MCPcopy Create free account
hub / github.com/baiwumm/react-admin / formatPerfix

Function formatPerfix

Xmw_web/src/utils/index.ts:77–81  ·  view source on GitHub ↗
(route: string, suffix = '', isMenu = false)

Source from the content-addressed store, hash-verified

75 * @Author: 白雾茫茫丶
76 */
77export const formatPerfix = (route: string, suffix = '', isMenu = false): string => {
78 // 国际化字符串
79 const field = `${isMenu ? 'menu' : 'pages'}.${formatPathName(route)}${suffix ? '.' + suffix : ''}`
80 return startsWith(route, 'global') ? route : field
81}
82
83/**
84 * @description: 获取 localstorage 的值

Callers 15

flagColumnFunction · 0.90
CreateButtonFunction · 0.90
BasiLayoutFunction · 0.90
NoticeBellFunction · 0.90
EventSourceNoticeFunction · 0.90
renderUploadAvatarFunction · 0.90
StrengthMeterFunction · 0.90
validatorFunction · 0.90
index.tsxFile · 0.90
PersonalSettingFunction · 0.90
BasicSettingFunction · 0.90
SecuritySettingFunction · 0.90

Calls 1

formatPathNameFunction · 0.85

Tested by

no test coverage detected