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

Commit accc6ce

Browse files
committed
fix: 修复未配置 config.region 的情况
1 parent 7252dd5 commit accc6ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/console-utils/xconsole-context/src/withConsoleContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function withAsyncRegionList<P extends IConsoleContextProp, S = {}>(
1313
Comp: new () => React.Component<P, S>
1414
) {
1515
return (props: P) => {
16-
const { region: { regionList: userRegionListConfig }, location } = props;
16+
const { region: { regionList: userRegionListConfig } = {}, location } = props;
1717
const [loading, setLoading] = useState(isFunction(userRegionListConfig));
1818
const [regionList, setRegionList] = useState(isFunction(userRegionListConfig) ? [] : userRegionListConfig);
1919

packages/ui/xconsole-rc-page-header/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { SelectProps } from '@alicloud/console-components/lib/select';
2+
import { SelectProps } from '@alifd/next/lib/select';
33
import { History } from 'history';
44

55
export interface INavProps {

packages/xconsole/xconsole.json

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

0 commit comments

Comments
 (0)