You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/04/19 08:46:24 UTC
(incubator-devlake) branch main updated: fix: return url error when exit onboard (#7352)
This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new dbb47738b fix: return url error when exit onboard (#7352)
dbb47738b is described below
commit dbb47738b9847c48be46749edf1dfb39bfe4d6a8
Author: 青湛 <0x...@gmail.com>
AuthorDate: Fri Apr 19 16:46:18 2024 +0800
fix: return url error when exit onboard (#7352)
---
config-ui/src/routes/onboard/index.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/config-ui/src/routes/onboard/index.tsx b/config-ui/src/routes/onboard/index.tsx
index 83a5a5b9d..422a157d3 100644
--- a/config-ui/src/routes/onboard/index.tsx
+++ b/config-ui/src/routes/onboard/index.tsx
@@ -23,6 +23,7 @@ import { theme, Layout, Modal } from 'antd';
import API from '@/api';
import { PageLoading } from '@/components';
+import { PATHS } from '@/config';
import { useRefreshData } from '@/hooks';
import type { Record } from './context';
@@ -86,7 +87,7 @@ export const Onboard = ({ logo, title }: Props) => {
content: 'You can get back to this session via the card on top of the Projects page.',
icon: <ExclamationCircleOutlined />,
okText: 'Confirm',
- onOk: () => navigate('/'),
+ onOk: () => navigate(PATHS.ROOT()),
});
};