diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 2a07e43..cf8949f 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -575,9 +575,11 @@ const GooActions = observer(function GooActions({ gooPoints, on {isDev && isPolling && } )} - router.push('/settings')}> - - + {!!isAuthenticated && ( + router.push('/settings')}> + + + )} ( - + {infoItems.map((item) => ( {item.label} {/*手机号 显示隐藏按钮 */} {item.id !== 'phone' && ( - + )} ))} @@ -209,7 +209,7 @@ export default observer(function ProfilePage() { ) return ( - + {renderHeader()} diff --git a/app/settings.tsx b/app/settings.tsx index f9fc1f5..40e7647 100644 --- a/app/settings.tsx +++ b/app/settings.tsx @@ -117,9 +117,9 @@ export default observer(function SettingsPage() { const renderMenuSection = () => ( - 使用相关 - - {menuItems.map((item, index) => ( + 使用相关 + + {menuItems.map((item) => ( {item.label} - {index < menuItems.length - 1 && ( - - )} ))} @@ -139,20 +136,18 @@ export default observer(function SettingsPage() { ) const renderLogoutButton = () => ( - - {isAuthenticated && ( + 退出登录 - )} ) return ( - + {renderHeader()}