[improvement](semantic-fe) add dimension&datasource relation graph and fix create datasource params bug

This commit is contained in:
tristanliu
2023-06-14 19:31:43 +08:00
parent dc4fc69b57
commit 693fc03c6f
7 changed files with 491 additions and 287 deletions

View File

@@ -40,7 +40,7 @@ const AvatarDropdown: React.FC<GlobalHeaderRightProps> = () => {
};
const { currentUser = {} } = initialState as any;
console.log(currentUser, 'currentUser');
const menuHeaderDropdown = (
<Menu className={styles.menu} selectedKeys={[]} onClick={onMenuClick}>
<Menu.Item key="logout">

View File

@@ -7,9 +7,11 @@ interface Props extends AvatarProps {
staffName?: string;
avatarImg?: string;
}
const TMEAvatar: FC<Props> = ({ avatarImg, ...restProps }) => (
<Avatar src={`${avatarImg}`} alt="avatar" icon={<img src={avatarIcon} />} {...restProps} />
);
const { tmeAvatarUrl } = process.env;
const TMEAvatar: FC<Props> = ({ staffName, avatarImg, ...restProps }) => {
const avatarSrc = tmeAvatarUrl ? `${tmeAvatarUrl}${staffName}.png` : avatarImg;
return (
<Avatar src={`${avatarSrc}`} alt="avatar" icon={<img src={avatarIcon} />} {...restProps} />
);
};
export default TMEAvatar;