lanjianrong 4 лет назад
Родитель
Сommit
46f9644b58
2 измененных файлов с 2 добавлено и 18 удалено
  1. 1 17
      package.json
  2. 1 1
      src/pages/Hr/Employee/components/RoleMenu/index.jsx

+ 1 - 17
package.json

@@ -71,7 +71,6 @@
     "react": "17.0.2",
     "react-copy-to-clipboard": "^5.0.4",
     "react-dom": "17.0.2",
-    "react-helmet-async": "^1.0.4",
     "react-infinite-scroll-component": "^6.1.0",
     "react-markdown": "^7.1.0",
     "umi": "3.5.4",
@@ -105,21 +104,13 @@
     "babel-eslint": "^10.1.0",
     "babel-plugin-import": "^1.13.3",
     "carlo": "^0.9.46",
-    "chalk": "^4.0.0",
     "compression-webpack-plugin": "4.0.1",
     "cross-env": "^7.0.0",
     "cross-port-killer": "^1.1.1",
     "detect-installer": "^1.0.1",
-    "enzyme": "^3.11.0",
     "eslint": "^7.18.0",
-    "eslint-plugin-import": "^2.23.4",
-    "eslint-plugin-javascript": "^1.3.4",
-    "eslint-plugin-jsx": "^0.1.0",
-    "eslint-plugin-react": "^7.24.0",
-    "eslint-plugin-typescript": "^0.14.0",
     "express": "^4.17.1",
     "gh-pages": "^3.0.0",
-    "jsdom-global": "^3.0.2",
     "lint-staged": "^10.0.0",
     "mockjs": "^1.0.1-beta3",
     "prettier": "^2.2.1",
@@ -135,12 +126,5 @@
   },
   "engines": {
     "node": ">=10.0.0"
-  },
-  "checkFiles": [
-    "src/**/*.js*",
-    "src/**/*.ts*",
-    "src/**/*.less",
-    "config/**/*.js*",
-    "scripts/**/*.js"
-  ]
+  }
 }

+ 1 - 1
src/pages/Hr/Employee/components/RoleMenu/index.jsx

@@ -56,7 +56,7 @@ const RoleMenu = props => {
           </div>
         )
       }
-      if (newItem.children.length) {
+      if (newItem.children?.length) {
         newItem.children = renderTreeNode(newItem.children)
       }
       return newItem