From c3bf821aadddaa35e38781b24347516833653a0b Mon Sep 17 00:00:00 2001 From: kushwahramkumar2003 Date: Tue, 6 Feb 2024 18:09:28 +0530 Subject: [PATCH] Update base URL and user profile image*** ***Add console log for user information --- src/constants/baseUrl.ts | 4 ++-- src/pages/admin/Admin.tsx | 2 +- src/pages/login/login.tsx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/constants/baseUrl.ts b/src/constants/baseUrl.ts index e4e7ee1..fef61dc 100755 --- a/src/constants/baseUrl.ts +++ b/src/constants/baseUrl.ts @@ -1,4 +1,4 @@ // const baseURL = import.meta.env.VUE_APP_API_URL || "http://localhost:3001"; -// const baseURL = "http://localhost:3001"; -const baseURL = "https://quiz-app-backend-cloud.azurewebsites.net"; +const baseURL = "http://localhost:3001"; +// const baseURL = "https://quiz-app-backend-cloud.azurewebsites.net"; export default baseURL; diff --git a/src/pages/admin/Admin.tsx b/src/pages/admin/Admin.tsx index da38aca..d7b641b 100755 --- a/src/pages/admin/Admin.tsx +++ b/src/pages/admin/Admin.tsx @@ -86,7 +86,7 @@ const Admin = () => {

QuizGrad

- profile + profile

Admin

diff --git a/src/pages/login/login.tsx b/src/pages/login/login.tsx index 26b3665..b4be981 100755 --- a/src/pages/login/login.tsx +++ b/src/pages/login/login.tsx @@ -31,6 +31,7 @@ export default function Login() { }, onSuccess: async (data) => { const { user } = data; + console.log("User : ",user); await dispatch(userActions.setUserInfo(user)); await localStorage.setItem("account", JSON.stringify(user));