@yysports/tools 2.2.6 → 2.2.7

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.
@@ -11,7 +11,7 @@ export var getModuleNameByUmi = function getModuleNameByUmi(onRouteChangeArgs, m
11
11
  var pathname = location.pathname;
12
12
  var routePath = pathname;
13
13
  if (basename !== '/') {
14
- routePath = pathname.replace(basename, '');
14
+ routePath = pathname.replace(basename, '/');
15
15
  }
16
16
  var currentRouteKey = Object.keys(routes).find(function (v) {
17
17
  return routes[v].path === routePath;
@@ -27,7 +27,7 @@ var getModuleNameByUmi = (onRouteChangeArgs, menuNameMap) => {
27
27
  const { pathname } = location;
28
28
  let routePath = pathname;
29
29
  if (basename !== "/") {
30
- routePath = pathname.replace(basename, "");
30
+ routePath = pathname.replace(basename, "/");
31
31
  }
32
32
  const currentRouteKey = Object.keys(routes).find(
33
33
  (v) => routes[v].path === routePath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yysports/tools",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "常用工具函数库",
5
5
  "homepage": "https://git.pousheng.com/sport-service-department/pousheng-guard/yysports_tools#readme",
6
6
  "bugs": {
@@ -11,7 +11,7 @@
11
11
  "url": "git+https://git.pousheng.com/sport-service-department/pousheng-guard/yysports_tools.git"
12
12
  },
13
13
  "license": "MIT",
14
- "author": "",
14
+ "author": "daiwenyu",
15
15
  "main": "lib/index.js",
16
16
  "module": "dist/index.js",
17
17
  "types": "dist/index.d.ts",
@@ -67,23 +67,23 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@ant-design/pro-components": "^2.8.10",
70
- "@commitlint/cli": "^20.1.0",
71
- "@commitlint/config-conventional": "^20.0.0",
72
- "@types/react": "^19.2.6",
70
+ "@commitlint/cli": "^20.2.0",
71
+ "@commitlint/config-conventional": "^20.2.0",
72
+ "@types/react": "^19.2.7",
73
73
  "@types/react-dom": "^19.2.3",
74
- "@umijs/lint": "^4.5.3",
75
- "antd": "^6.0.0",
74
+ "@umijs/lint": "^4.6.8",
75
+ "antd": "^6.1.1",
76
76
  "dumi": "^2.4.21",
77
77
  "eslint": "^8.57.1",
78
- "father": "^4.6.7",
78
+ "father": "^4.6.10",
79
79
  "husky": "^9.1.7",
80
80
  "lint-staged": "^16.2.7",
81
- "prettier": "^3.6.2",
81
+ "prettier": "^3.7.4",
82
82
  "prettier-plugin-organize-imports": "^4.3.0",
83
- "prettier-plugin-packagejson": "^2.5.19",
84
- "react": "^19.2.0",
85
- "react-dom": "^19.2.0",
86
- "stylelint": "^16.26.0"
83
+ "prettier-plugin-packagejson": "^2.5.20",
84
+ "react": "^19.2.3",
85
+ "react-dom": "^19.2.3",
86
+ "stylelint": "^16.26.1"
87
87
  },
88
88
  "publishConfig": {
89
89
  "access": "public"