chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -65,7 +65,7 @@ export const GlobalLayoutActionBtn: FC<LayoutButtonItem> = ({
|
||||
data-testid={dataTestId}
|
||||
/>
|
||||
);
|
||||
// 如果 tooltip 为空,则不显示 tooltip
|
||||
// If tooltip is empty, tooltip is not displayed
|
||||
return (
|
||||
<>
|
||||
{tooltip ? (
|
||||
|
||||
@@ -41,7 +41,7 @@ export const GLobalLayoutMenuItem: FC<LayoutMenuItem> = ({
|
||||
|
||||
let isActive = false;
|
||||
let newPath = '';
|
||||
// 如果 path 是数组,则取第一个匹配的路径
|
||||
// If path is an array, take the first matching path
|
||||
if (Array.isArray(path)) {
|
||||
isActive = path.some(p => location.pathname.startsWith(p));
|
||||
newPath = path.find(p => location.pathname.startsWith(p)) || path[0];
|
||||
|
||||
@@ -53,7 +53,7 @@ export const GlobalLayoutSider: FC<Omit<LayoutProps, 'hasSider'>> = ({
|
||||
return (
|
||||
<div className="pl-8px py-8px h-full">
|
||||
<div className={siderStyle}>
|
||||
{/* 主导航 */}
|
||||
{/* main navigation */}
|
||||
<div
|
||||
className={classNames(
|
||||
mainMenuStyle,
|
||||
@@ -83,7 +83,7 @@ export const GlobalLayoutSider: FC<Omit<LayoutProps, 'hasSider'>> = ({
|
||||
{footer}
|
||||
</Space>
|
||||
</div>
|
||||
{/* 二级导航 */}
|
||||
{/* secondary navigation */}
|
||||
<SubMenu />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user