Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 920cf08

Browse files
committed
fix: demo start error
1 parent b7710e0 commit 920cf08

File tree

7 files changed

+4
-8
lines changed

7 files changed

+4
-8
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"pub": "lerna publish"
2020
},
2121
"devDependencies": {
22-
"@ali/console-base-messenger": "^2.6.8",
2322
"@typescript-eslint/eslint-plugin": "^2.24.0",
2423
"@typescript-eslint/parser": "^2.31.0",
2524
"eslint": "^6.8.0",

packages/build-tools/console-toolkit-plugin-xconsole/generators/xconsole/templates/config/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* 整个应用构建, 编译配置
33
*
44
* 详细工程化相关配置 详情参见:
5-
* https://xconsole.aliyun-inc.com/develop/config
5+
* https://xconsole.cloud/cloudbench/develop/vcpzm0
66
*/
77

88
module.exports = {

packages/build-tools/console-toolkit-plugin-xconsole/generators/xconsole/templates/src/appConfig.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ config.region = {
1010
{ id: 'cn-beijing', name: '华北2(北京)' },
1111
{ id: 'cn-qingdao', name: '华北1(青岛)' },
1212
{ id: 'cn-shanghai', name: '华东2(上海)' },
13-
],
14-
reginbarVisiblePaths: [
15-
'/:regionId/basic-list',
16-
'/tech/:regionId'
1713
]
1814
}
1915

packages/xconsole/src/app.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const XConsoleApp: React.FunctionComponent<XConsoleAppProps> = (
99
) => {
1010
const { appConfig, history, sidebar, AppLayout, routeConfig } = props;
1111
const [ activeRegionId, setActiveRegionId ] = useState(undefined);
12+
const redirect = (routeConfig.global.redirect || '').replace(':regionId', activeRegionId);
1213
return (
1314
<Router history={history}>
1415
<RegionContext.Provider value={{activeRegionId, setActiveRegionId}}>
@@ -20,7 +21,7 @@ const XConsoleApp: React.FunctionComponent<XConsoleAppProps> = (
2021
<Switch>
2122
{getRouteFromConfig(props)}
2223
<Redirect
23-
to={`${routeConfig.global.prefix}/${routeConfig.global.redirect}`}
24+
to={`${routeConfig.global.prefix}/${redirect}`}
2425
/>
2526
</Switch>
2627
</AppLayout>

packages/xconsole/xconsole.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"2.3.39"}
1+
{"version":"2.3.40"}

0 commit comments

Comments
 (0)