From d3aa746e0be9a871fbfd821197c5415ca1f34133 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 12 Jul 2025 18:30:43 +0800 Subject: [PATCH] fix --- src/services/pythonCliAuth.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/pythonCliAuth.ts b/src/services/pythonCliAuth.ts index 4f3fd13..003f636 100644 --- a/src/services/pythonCliAuth.ts +++ b/src/services/pythonCliAuth.ts @@ -77,6 +77,8 @@ class PythonCliAuth { } }); + console.log({ response }) + if (!response.success) { throw new Error(response.error || response.message || 'Login failed'); } @@ -282,7 +284,7 @@ class PythonCliAuth { try { const token = localStorage.getItem('auth_token'); const userStr = localStorage.getItem('auth_user'); - + if (token && userStr) { this.token = token; this.user = JSON.parse(userStr);