lanjianrong 3 tahun lalu
induk
melakukan
86a99b044d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/components/Navigation/index.tsx

+ 1 - 1
src/components/Navigation/index.tsx

@@ -59,7 +59,7 @@ class NavigationGuards extends Component<NavigationGuardsProps, any> {
 
   componentDidMount() {
     this.changDocumentTitle(this.props.location.pathname)
-    userStore.check(location?.pathname)
+    userStore.check(this.props.location.pathname)
   }
   // shouldComponentUpdate(nextProps: any) {