Open shulaoda opened 1 month ago
packages/theme-default/src/components/Nav/menuDataHooks.tsx I found that there are many duplicate parts in two of the code segments, especially the replaceVersion and replaceLang functions. Perhaps they can be optimized?
replaceVersion
replaceLang
What problem does this perf solve?
packages/theme-default/src/components/Nav/menuDataHooks.tsx I found that there are many duplicate parts in two of the code segments, especially the
replaceVersion
andreplaceLang
functions. Perhaps they can be optimized?