#
luxiaotao1123
2024-02-27 f6dcf290ac1c3bae018465f2336cae69a52b0e34
zy-asrs-flow/src/pages/account/setting/components/base.jsx
@@ -28,6 +28,7 @@
const BaseView = () => {
  const { styles } = useStyles();
  // 头像组件 方便以后独立,增加裁剪之类的功能
  const AvatarView = ({ avatar }) => (
    <>
@@ -45,9 +46,11 @@
      </Upload>
    </>
  );
  const { data: currentUser, loading } = useRequest(() => {
    return queryCurrent();
  });
  const getAvatarURL = () => {
    if (currentUser) {
      if (currentUser.avatar) {
@@ -58,9 +61,11 @@
    }
    return '';
  };
  const handleFinish = async () => {
    message.success('更新基本信息成功');
  };
  return (
    <div className={styles.baseView}>
      {loading ? null : (
@@ -152,4 +157,5 @@
    </div>
  );
};
export default BaseView;