浏览代码

Merge branch 'master' of http://121.40.40.223:3000/zizhong.wang/boniuApi

cl 4 年之前
父节点
当前提交
ce6f96b5e1
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 1
      boniu/.eslintcache
  2. 5 4
      boniu/src/components/Navbar/navbar.jsx

文件差异内容过多而无法显示
+ 1 - 1
boniu/.eslintcache


+ 5 - 4
boniu/src/components/Navbar/navbar.jsx

@@ -20,7 +20,7 @@ class NavBar extends Component {
     super(props);
     this.state = {
       userInfo: {},
-      opensubmenu: ["overview"],
+      openSubmenu: ["overview"],
       stocks: null,
       index: null
     };
@@ -43,14 +43,15 @@ class NavBar extends Component {
               style={{ height: "100%", borderRight: 0 }}
               selectedKeys={pathNames}
               onOpenChange={(item) => {
-                if (item.length < this.state.opensubmenu.length) {
+                console.log(item);
+                if (item.length < this.state.openSubmenu.length) {
                   this.setState({
-                    opensubmenu: item
+                    openSubmenu: item
                   });
                   return;
                 }
                 this.setState({
-                  opensubmenu: item
+                  openSubmenu: item
                 });
                 item.slice(-1)[0] === "indexApi"
                   ? this.state.index