@fe-free/core 3.0.12 → 3.0.13

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @fe-free/core
2
2
 
3
+ ## 3.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: fix
8
+ - @fe-free/tool@3.0.13
9
+
3
10
  ## 3.0.12
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fe-free/core",
3
- "version": "3.0.12",
3
+ "version": "3.0.13",
4
4
  "description": "",
5
5
  "main": "./src/index.ts",
6
6
  "author": "",
@@ -41,7 +41,7 @@
41
41
  "safe-stable-stringify": "^2.5.0",
42
42
  "vanilla-jsoneditor": "^0.23.1",
43
43
  "zustand": "^4.5.4",
44
- "@fe-free/tool": "3.0.12"
44
+ "@fe-free/tool": "3.0.13"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@ant-design/pro-components": "2.8.9",
@@ -119,7 +119,7 @@ function CoreApp(props: {
119
119
 
120
120
  useEffect(() => {
121
121
  // 首页,且 basename 不是 /,一定是要去到 basename 的
122
- if (window.location.pathname === '/' && basename !== '/') {
122
+ if (window.location.pathname === '/' && basename !== '/' && basename !== '') {
123
123
  window.location.href = basename;
124
124
  }
125
125
  }, []);