瀏覽代碼

登录后跳转渠道产品界面

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>