feat: 实现减脂体重管理App完整功能
- 实现拍照识别食物功能(集成大语言模型视觉能力) - 实现智能对话功能(集成大语言模型流式输出) - 实现食物记录和卡路里管理功能 - 实现体重记录和统计功能 - 实现健康数据管理页面 - 配置数据库表结构(用户、食物记录、体重记录) - 实现Express后端API路由 - 配置Tab导航和前端页面 - 采用健康运动配色方案
This commit is contained in:
30
client/app/+not-found.tsx
Normal file
30
client/app/+not-found.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
import { View, Text, StyleSheet } from 'react-native';
|
||||
import { Link } from 'expo-router';
|
||||
import { useTheme } from '@/hooks/useTheme';
|
||||
import { Spacing } from '@/constants/theme';
|
||||
|
||||
export default function NotFoundScreen() {
|
||||
const { theme } = useTheme();
|
||||
|
||||
return (
|
||||
<View style={[styles.container, { backgroundColor: theme.backgroundRoot }]}>
|
||||
<Text>
|
||||
页面不存在
|
||||
</Text>
|
||||
<Link href="/" style={[styles.gohome]}>
|
||||
返回首页
|
||||
</Link>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
},
|
||||
gohome: {
|
||||
marginTop: Spacing['2xl'],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user