@fe-free/core 3.0.11 → 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 +14 -0
- package/package.json +2 -2
- package/src/core_app/config.ts +4 -0
- package/src/core_app/index.tsx +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/core",
|
|
3
|
-
"version": "3.0.
|
|
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.
|
|
44
|
+
"@fe-free/tool": "3.0.13"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@ant-design/pro-components": "2.8.9",
|
package/src/core_app/config.ts
CHANGED
package/src/core_app/index.tsx
CHANGED
|
@@ -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
|
}, []);
|