头像上传优化

This commit is contained in:
禺狨
2023-06-30 17:27:25 +08:00
parent f7db6e3cb9
commit c603b2c385
4 changed files with 12 additions and 20 deletions

View File

@@ -61,7 +61,10 @@ export const TabBarFooter: React.FC = () => {
return (
<div className={styles["footer"]}>
<TabBar activeKey={pathname} onChange={(value) => navigate(value)}>
<TabBar
activeKey={pathname}
onChange={(value) => navigate(value, { replace: true })}
>
{tabs.map((item) => (
<TabBar.Item key={item.key} icon={item.icon} title={item.title} />
))}