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

Commit f6dbf7f

Browse files
committed
fix: fastlogin
1 parent 26b48fe commit f6dbf7f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/console-utils/xconsole-service/src/interceptors/fastloginInterceptor/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ async function fastLoginInterceptor(response: IResponse<IResponseData> ): Promis
1010

1111
// 只在开启了 fastLogin 的站点才显示
1212
// @ts-ignore
13-
if((!fastLogin && !defaultConfig.fastLogin) || window?.ALIYUN_CONSOLE_CONFIG?.CHANNEL !== 'OFFICIAL') {
13+
const fastLoginEnbled = (fastLogin || defaultConfig.fastLogin) && window?.ALIYUN_CONSOLE_CONFIG?.CHANNEL === 'OFFICIAL'
14+
if(!fastLoginEnbled) {
1415
return response;
1516
}
1617

packages/console-utils/xconsole-service/stories/fast-login.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ storiesOf('XConsole FastLogin', module)
2222
.add('FastLogin', () => {
2323
React.useEffect(() => {
2424
(async () => {
25-
await createService('consoledemo', 'ConsoleNeedLogin', { fastLogin: true})({ xxxx:1 })
25+
await createService('consoledemo', 'ConsoleNeedLogin', { fastLogin: true })({ xxxx:1 })
2626
})()
2727
})
2828
return <div/>

0 commit comments

Comments
 (0)