瀏覽代碼

feat: 111

lanjianrong 3 年之前
父節點
當前提交
86a99b044d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {