From 5ad83146ad2b89cc1e94219d4359c354d27d3066 Mon Sep 17 00:00:00 2001 From: imeepos Date: Tue, 11 Nov 2025 18:24:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=85=85=E5=80=BC=E9=A1=B5=E9=9D=A2=E8=B7=AF=E5=BE=84=E4=B8=BA?= =?UTF-8?q?=20/exchange?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 redirectToPricePage 跳转路径不一致问题 - 统一使用 /exchange 作为充值页面入口 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- lib/api/balance.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api/balance.ts b/lib/api/balance.ts index 616aa89..4057ea9 100644 --- a/lib/api/balance.ts +++ b/lib/api/balance.ts @@ -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); }