@lemon-fe/components 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -228,7 +228,7 @@ export default function Menu(props) {
228
228
  var activeMenu = useMemo(function () {
229
229
  var check = function check(path) {
230
230
  if (path) {
231
- return new RegExp("".concat(path, "(?![^\\/])")).test(location.pathname);
231
+ return new RegExp("".concat(path.split('?')[0], "(?![^\\/])")).test(location.pathname);
232
232
  }
233
233
 
234
234
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "> TODO: description",
5
5
  "author": "鲁盛杰 <lusj@cnlemon.net>",
6
6
  "homepage": "",
@@ -39,5 +39,5 @@
39
39
  "@types/lodash": "^4.14.179",
40
40
  "@types/react-resizable": "^1.7.4"
41
41
  },
42
- "gitHead": "5f375aa03a86a1c776ef3e99ead0db39cbdbf7e8"
42
+ "gitHead": "f0f512c0a2e59bedb7ec800d545d395580f07038"
43
43
  }