2025-03-17 User Detail

From Izara Wiki
Revision as of 08:11, 17 April 2025 by Pack (talk | contribs)
Jump to navigation Jump to search

Concept

  • check if login by get access_token from local_storage
  • querry userId from backend if login and set it in local_storage
  • use userId to querry user_detail
  • Must to set Uset-detal component as parent of menu-output

Why user-detail have to set as parent of menu-output

  • Menu-output it always mount on web page every single page will see menu-output.
  • After login menu-output will check login and decide which component should output between login component and not login component by check user detail had already query user-detail or not.