Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit b7de93c

Browse files
committed
fix: remove resourceGroupId when empty
1 parent a47ea32 commit b7de93c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎packages/console-utils/xconsole-context/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/xconsole-context",
3-
"version": "2.4.25",
3+
"version": "2.4.26",
44
"main": "lib/index.js",
55
"module": "es/index.js",
66
"types": "lib/index.d.ts",

‎packages/console-utils/xconsole-context/src/resourceGroup/useResourceGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default (props: IConsoleContextProp<{regionId?: string}>): ResourceGroup
7171
} else {
7272
setCurrentRGId(payload.id);
7373
url.searchParams.delete('resourceGroupId');
74-
url.searchParams.append('resourceGroupId', payload.id);
74+
if(payload.id)url.searchParams.append('resourceGroupId', payload.id);
7575
}
7676

7777
history.push({

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /