Browse Source

账户名放下一行

visuddhinanda 1 year ago
parent
commit
e4313f2655
1 changed files with 3 additions and 2 deletions
  1. 3 2
      dashboard-v4/dashboard/src/components/auth/SignInAvatar.tsx

+ 3 - 2
dashboard-v4/dashboard/src/components/auth/SignInAvatar.tsx

@@ -24,7 +24,7 @@ import User from "./User";
 import { fullUrl } from "../../utils";
 import { fullUrl } from "../../utils";
 import Studio from "./Studio";
 import Studio from "./Studio";
 
 
-const { Title, Paragraph } = Typography;
+const { Title, Paragraph, Text } = Typography;
 
 
 interface IWidget {
 interface IWidget {
   placement?: TooltipPlacement;
   placement?: TooltipPlacement;
@@ -56,8 +56,9 @@ const SignInAvatarWidget = ({ style, placement = "bottomRight" }: IWidget) => {
     const welcome = (
     const welcome = (
       <Paragraph>
       <Paragraph>
         <Title level={3} style={{ fontSize: 22 }}>
         <Title level={3} style={{ fontSize: 22 }}>
-          {user.nickName}@{user.realName}
+          {user.nickName}
         </Title>
         </Title>
+        <Text type="secondary">账户名 {user.realName}</Text>
         <Paragraph style={{ textAlign: "right", paddingTop: 30 }}>
         <Paragraph style={{ textAlign: "right", paddingTop: 30 }}>
           {intl.formatMessage({
           {intl.formatMessage({
             id: "buttons.welcome",
             id: "buttons.welcome",