diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 42103ec..44dd58d 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -18,6 +18,8 @@ export default function HomeScreen() { router.replace('/ask') }, false).then(() => { setIsLoading(false); + }).catch(() => { + setIsLoading(false); }); }, []); diff --git a/app/(tabs)/owner.tsx b/app/(tabs)/owner.tsx index 19dcac5..8b3d2e3 100644 --- a/app/(tabs)/owner.tsx +++ b/app/(tabs)/owner.tsx @@ -1,5 +1,4 @@ import ConversationsSvg from '@/assets/icons/svg/conversations.svg'; -import MoreArrowSvg from '@/assets/icons/svg/moreArrow.svg'; import PointsSvg from '@/assets/icons/svg/points.svg'; import StoriesSvg from '@/assets/icons/svg/stories.svg'; import UsedStorageSvg from '@/assets/icons/svg/usedStorage.svg'; @@ -89,13 +88,10 @@ export default function OwnerPage() { {/* 资源数据 */} - + } isFormatBytes={true} /> } /> - - - {/* 数据统计 */} + + diff --git a/components/ask/send.tsx b/components/ask/send.tsx index b2d01fa..6dea33e 100644 --- a/components/ask/send.tsx +++ b/components/ask/send.tsx @@ -1,5 +1,5 @@ 'use client'; -import VoiceSvg from '@/assets/icons/svg/vioce.svg'; +import SendSvg from '@/assets/icons/svg/send.svg'; import React, { Dispatch, SetStateAction, useCallback, useEffect, useState } from 'react'; import { Keyboard, @@ -125,9 +125,12 @@ export default function SendMessage(props: Props) { /> - + + + @@ -156,6 +159,6 @@ const styles = StyleSheet.create({ backgroundColor: '#FF9500', justifyContent: 'center', alignItems: 'center', - marginRight: 8, // 添加一点右边距 + marginRight: 8, // 添加一点 }, }); \ No newline at end of file diff --git a/components/owner/album.tsx b/components/owner/album.tsx index 855faf9..d546198 100644 --- a/components/owner/album.tsx +++ b/components/owner/album.tsx @@ -11,10 +11,10 @@ const AlbumComponent = ({ setModalVisible, style }: CategoryProps) => { const { t } = useTranslation(); return ( - + {t('generalSetting.album', { ns: 'personal' })} - + {t('generalSetting.shareProfile', { ns: 'personal' })} setModalVisible(true)} style={[styles.text, { flex: 1, alignItems: "center", paddingVertical: 6 }]}> diff --git a/components/owner/qualification/privacy.tsx b/components/owner/qualification/privacy.tsx index 7af7259..3540069 100644 --- a/components/owner/qualification/privacy.tsx +++ b/components/owner/qualification/privacy.tsx @@ -42,9 +42,10 @@ const PrivacyModal = (props: { modalVisible: boolean, setModalVisible: (visible: }) } }; - - loadArticle(); - }, []); + if (type) { + loadArticle(); + } + }, [type]); if (!article) { return ( diff --git a/components/owner/userInfo.tsx b/components/owner/userInfo.tsx index 7356e9e..d1565b0 100644 --- a/components/owner/userInfo.tsx +++ b/components/owner/userInfo.tsx @@ -73,7 +73,7 @@ const UserInfo = (props: UserInfoProps) => { useEffect(() => { if (modalVisible) { getLocation(); - if (Object.keys(currentLocation).length === 0) { + if (currentLocation && Object?.keys(currentLocation)?.length === 0) { getCurrentLocation(); } }