🐛 fix: 统一充值页面路径为 /exchange

- 修复 redirectToPricePage 跳转路径不一致问题
- 统一使用 /exchange 作为充值页面入口

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
imeepos 2025-11-11 18:24:00 +08:00
parent fe814bd403
commit 5ad83146ad
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { Alert } from 'react-native';
import { router } from 'expo-router';
import { Alert } from 'react-native';
import { authClient } from '../auth/client';
export interface UserBalance {
@ -156,7 +156,7 @@ export async function recordTokenUsage(
{
text: '去充值',
onPress: () => {
router.push('/(tabs)' as any);
router.push('/exchange');
},
},
]
@ -210,5 +210,5 @@ export async function recordTokenUsage(
*
*/
export function redirectToPricePage() {
router.push('/(tabs)' as any);
router.push('/exchange' as any);
}