diff --git a/components/layout/top-bar.tsx b/components/layout/top-bar.tsx index f72539d..f003157 100644 --- a/components/layout/top-bar.tsx +++ b/components/layout/top-bar.tsx @@ -99,12 +99,12 @@ export function TopBar({ if (response.successful && response.data?.portal_url) { redirectToPortal(response.data.portal_url); } else { - console.error('创建订阅管理会话失败:', response.message); - alert('无法打开订阅管理页面,请稍后重试'); + console.log("cannot open the manage subscription"); + return; } } catch (error) { - console.error('打开订阅管理页面失败:', error); - alert('无法打开订阅管理页面,请稍后重试'); + console.log("cannot open the manage subscription"); + return; } finally { setIsManagingSubscription(false); }