Movatterモバイル変換


[0]ホーム

URL:


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

Commit4f3b6f2

Browse files
raheeliftikhar5ludomikula
authored andcommitted
subpath relative route in app editor
1 parent3151738 commit4f3b6f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎client/packages/lowcoder/src/pages/editor/AppEditor.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { AppState } from "@lowcoder-ee/redux/reducers";
3737
import{resetIconDictionary}from"@lowcoder-ee/constants/iconConstants";
3838
import{fetchJsDSPaginationByApp}from"@lowcoder-ee/util/pagination/axios";
3939
importPaginationCompfrom"@lowcoder-ee/util/pagination/Pagination";
40+
importhistoryfrom"@lowcoder-ee/util/history";
4041

4142
constAppSnapshot=lazy(()=>{
4243
returnimport("pages/editor/appSnapshot")
@@ -67,12 +68,12 @@ const AppEditor = React.memo(() => {
6768
// Memoize selectors to prevent unnecessary re-renders
6869
constselectors=useMemo(()=>({
6970
isUserViewMode:params.viewMode ?isUserViewModeCheck :true,
70-
applicationId:params.applicationId||window.location.pathname.split("/")[2],
71-
paramViewMode:params.viewMode||window.location.pathname.split("/")[3],
71+
applicationId:params.applicationId||history.location.pathname.split("/")[2],
72+
paramViewMode:params.viewMode||history.location.pathname.split("/")[3],
7273
viewMode:(params.viewMode==="view"||params.viewMode==="admin")
7374
?"published"
7475
:params.viewMode==="view_marketplace" ?"view_marketplace" :"editing",
75-
}),[params.viewMode,params.applicationId,window.location.pathname,isUserViewModeCheck]);
76+
}),[params.viewMode,params.applicationId,history.location.pathname,isUserViewModeCheck]);
7677

7778
constfirstRendered=useRef(false);
7879
constorgId=useMemo(()=>currentUser.currentOrgId,[currentUser.currentOrgId]);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp