Skip to content

Commit 1d95a4b

Browse files
author
liq
committed
fix: 切换工作空调跳转不对的问题
1 parent 49f8eff commit 1d95a4b

File tree

1 file changed

+1
-1
lines changed
  • web/app/components/header/account-dropdown/workplace-selector

1 file changed

+1
-1
lines changed

web/app/components/header/account-dropdown/workplace-selector/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const WorkplaceSelector = () => {
3535
return
3636
await switchWorkspace({ url: '/workspaces/switch', body: { tenant_id } })
3737
notify({ type: 'success', message: t('common.actionMsg.modifiedSuccessfully') })
38-
location.assign(`${location.origin}`)
38+
location.assign(`${location.href}`)
3939
}
4040
catch (e) {
4141
notify({ type: 'error', message: t('common.provider.saveFailed') })

0 commit comments

Comments
 (0)