diff --git a/src/components/AppHeader/components/userCenter/UserCenter.tsx b/src/components/AppHeader/components/userCenter/UserCenter.tsx index d013907..1ddff78 100644 --- a/src/components/AppHeader/components/userCenter/UserCenter.tsx +++ b/src/components/AppHeader/components/userCenter/UserCenter.tsx @@ -1,4 +1,4 @@ -import { useModel } from '@/.umi/plugin-model/useModel'; +import { useModel } from 'umi'; import { confirm } from '@/components/AModal'; import OssImage from '@/components/OssImage'; import SvgIcon from '@/components/SvgIcon'; @@ -10,6 +10,7 @@ import React, { CSSProperties } from 'react'; import { useCallback } from 'react'; import { useState } from 'react'; import styles from './UserCenter.less'; +import defaultAvatorImg from '@/assets/avator_default.svg'; interface UserCenterProps { className?: string; @@ -22,7 +23,7 @@ export default function UserCenter(props: UserCenterProps) { const onVisibleChange = useCallback((nextVisible) => { setPopVisible(nextVisible); - }, []) + }, []); return ( null} > - ) + ); } function PopContent(props) { @@ -51,8 +55,8 @@ function PopContent(props) { logout(); }, content: '确实退出登录?', - }) - }, []) + }); + }, []); return (
@@ -61,7 +65,12 @@ function PopContent(props) {
{currentUser?.phone}
- +
@@ -84,9 +93,11 @@ function PopContent(props) {
*/}
- +
- ) -} \ No newline at end of file + ); +}