lwei 1 year ago
parent
commit
a7436a44f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Vmp.tsx

+ 1 - 1
src/Vmp.tsx

@@ -23,7 +23,7 @@ const Vmp: React.FC = () => {
     if (login2p.jwt) {
       login2p.getUserDetail()
     }
-  }, [])
+  }, [login2p.jwt])
   return (
     <Switch>
       <Route