logic is like this: the project default route is home component
, determine whether there is address
in localStorage
, if not, jump to address component
to select an address, and then jump to home component
. In vue, I judge in created and then use push to jump. React-rouer documents have read but still do not know how to do