Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81c883e

Browse files
committed
remove org/home of route
1 parent a25b6ae commit 81c883e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

viewer/packages/lowcoder/src/app.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { default as App } from "antd/es/app";
22
import { default as ConfigProvider } from "antd/es/config-provider";
33
import {
4-
ORG_HOME_URL,
54
ALL_APPLICATIONS_URL,
65
APP_EDITOR_URL,
76
APPLICATION_VIEW_URL,
@@ -317,16 +316,6 @@ class AppIndex extends React.Component<AppIndexProps, any> {
317316
component={LazyComponentPlayground}
318317
/>
319318

320-
{this.props.isFetchUserFinished && this.props.defaultHomePage ? (
321-
!this.props.orgDev ? (
322-
<Redirect exact from={BASE_URL} to={APPLICATION_VIEW_URL(this.props.defaultHomePage || "", "view")} />
323-
) : (
324-
<Redirect exact from={BASE_URL} to={ORG_HOME_URL} />
325-
)
326-
) : (
327-
<Redirect exact from={BASE_URL} to={ALL_APPLICATIONS_URL} />
328-
)}
329-
330319
<Redirect to={`${COMPONENT_DOC_URL}/input`} path="/components" />
331320

332321
{developEnv() && (
@@ -392,3 +381,4 @@ export function bootstrap() {
392381
</Provider>
393382
);
394383
}
384+

viewer/packages/lowcoder/src/constants/routesURL.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { DatasourceType } from "@lowcoder-ee/constants/queryConstants";
55

66
export const BASE_URL = "/";
77
export const USER_AUTH_URL = "/user/auth";
8-
export const ORG_HOME_URL = "/org/home";
98
export const COMPONENT_DOC_URL = "/components";
109
export const SETTING_URL = "/setting";
1110
export const PERMISSION_SETTING = "/setting/permission";

0 commit comments

Comments
 (0)