@fe-free/core 2.3.1 → 2.3.2
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 +7 -0
- package/package.json +2 -2
- package/src/core_app/index.tsx +7 -7
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/core",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"author": "",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"remark-gfm": "^4.0.1",
|
|
42
42
|
"vanilla-jsoneditor": "^0.23.1",
|
|
43
43
|
"zustand": "^4.5.4",
|
|
44
|
-
"@fe-free/tool": "2.3.
|
|
44
|
+
"@fe-free/tool": "2.3.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@ant-design/pro-components": "2.8.9",
|
package/src/core_app/index.tsx
CHANGED
|
@@ -16,13 +16,6 @@ function SetRouteTool({ basename }: { basename: string }) {
|
|
|
16
16
|
routeTool.setBaseName(basename);
|
|
17
17
|
}, [navigate, basename]);
|
|
18
18
|
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
// 首页,且 basename 不是 /,一定是要去到 basename 的
|
|
21
|
-
if (location.pathname === '/' && basename !== '/') {
|
|
22
|
-
location.href = basename;
|
|
23
|
-
}
|
|
24
|
-
}, []);
|
|
25
|
-
|
|
26
19
|
return null;
|
|
27
20
|
}
|
|
28
21
|
|
|
@@ -48,6 +41,13 @@ function CoreApp(props: {
|
|
|
48
41
|
|
|
49
42
|
useTitle(name || '');
|
|
50
43
|
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
// 首页,且 basename 不是 /,一定是要去到 basename 的
|
|
46
|
+
if (window.location.pathname === '/' && basename !== '/') {
|
|
47
|
+
window.location.href = basename;
|
|
48
|
+
}
|
|
49
|
+
}, []);
|
|
50
|
+
|
|
51
51
|
return (
|
|
52
52
|
<ProConfigProvider
|
|
53
53
|
{...proConfigProviderProps}
|