Преглед изворни кода

登录后跳转渠道产品界面

zhanghe пре 7 година
родитељ
комит
6b99eea4b2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/layouts/BasicLayout.js

+ 2 - 2
src/layouts/BasicLayout.js

@@ -119,7 +119,7 @@ class BasicLayout extends React.PureComponent {
             isMobile={this.state.isMobile}
           />
           <Content style={{ margin: '24px 24px 0', height: '100%' }}>
-            {currentUser.platForm &&
+            {(currentUser.platForm === undefined || currentUser.platForm) &&
               <div style={{ minHeight: 'calc(100vh - 260px)' }}>
                 <Switch>
                   {
@@ -137,7 +137,7 @@ class BasicLayout extends React.PureComponent {
                       />
                     ))
                   }
-                  <Redirect exact from="/" to="/sold" />
+                  <Redirect exact from="/" to="/goods" />
                   <Route render={NotFound} />
                 </Switch>
               </div>