mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 19:37:52 +00:00
fix query
This commit is contained in:
parent
667029f2c6
commit
2980395ed2
@ -25,8 +25,12 @@ export const AppViewer = React.forwardRef(({ app , hide, isDevMode, skipAuth}, i
|
|||||||
setUrl(app?.url)
|
setUrl(app?.url)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
let hasQueryParam = false
|
||||||
setUrl(`${getBaseApiReact()}/render/${app?.service}/${app?.name}${app?.path != null ? `/${app?.path}` : ''}?theme=dark&identifier=${(app?.identifier != null && app?.identifier != 'null') ? app?.identifier : ''}`)
|
if(app?.path && app.path.includes('?')){
|
||||||
|
hasQueryParam = true
|
||||||
|
}
|
||||||
|
|
||||||
|
setUrl(`${getBaseApiReact()}/render/${app?.service}/${app?.name}${app?.path != null ? `/${app?.path}` : ''}${hasQueryParam ? "&": "?" }theme=dark&identifier=${(app?.identifier != null && app?.identifier != 'null') ? app?.identifier : ''}`)
|
||||||
}, [app?.service, app?.name, app?.identifier, app?.path, app?.isPreview])
|
}, [app?.service, app?.name, app?.identifier, app?.path, app?.isPreview])
|
||||||
|
|
||||||
useEffect(()=> {
|
useEffect(()=> {
|
||||||
@ -44,7 +48,6 @@ export const AppViewer = React.forwardRef(({ app , hide, isDevMode, skipAuth}, i
|
|||||||
const {tabId} = e.detail
|
const {tabId} = e.detail
|
||||||
if(tabId === app?.tabId){
|
if(tabId === app?.tabId){
|
||||||
if(isDevMode){
|
if(isDevMode){
|
||||||
|
|
||||||
resetHistory()
|
resetHistory()
|
||||||
if(!app?.isPreview || app?.isPrivate){
|
if(!app?.isPreview || app?.isPrivate){
|
||||||
setUrl(app?.url + `?time=${Date.now()}`)
|
setUrl(app?.url + `?time=${Date.now()}`)
|
||||||
@ -52,7 +55,6 @@ export const AppViewer = React.forwardRef(({ app , hide, isDevMode, skipAuth}, i
|
|||||||
return
|
return
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const constructUrl = `${getBaseApiReact()}/render/${app?.service}/${app?.name}${path != null ? path : ''}?theme=dark&identifier=${app?.identifier != null ? app?.identifier : ''}&time=${new Date().getMilliseconds()}`
|
const constructUrl = `${getBaseApiReact()}/render/${app?.service}/${app?.name}${path != null ? path : ''}?theme=dark&identifier=${app?.identifier != null ? app?.identifier : ''}&time=${new Date().getMilliseconds()}`
|
||||||
setUrl(constructUrl)
|
setUrl(constructUrl)
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ export const WalletsAppWrapper = () => {
|
|||||||
tabId: "5558589",
|
tabId: "5558589",
|
||||||
name: "Q-Wallets",
|
name: "Q-Wallets",
|
||||||
service: "APP",
|
service: "APP",
|
||||||
path: '/qortal'
|
path: 'qortal?authOnMount=true'
|
||||||
});
|
});
|
||||||
|
|
||||||
const isDisableBackButton = useMemo(() => {
|
const isDisableBackButton = useMemo(() => {
|
||||||
@ -66,11 +66,8 @@ export const WalletsAppWrapper = () => {
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
position: "fixed",
|
position: "fixed",
|
||||||
height: "1000px",
|
height: "100vh",
|
||||||
|
width: "100vw",
|
||||||
maxHeight: "100vh",
|
|
||||||
width: "1200px",
|
|
||||||
maxWidth: "100vw",
|
|
||||||
backgroundColor: "#27282c",
|
backgroundColor: "#27282c",
|
||||||
zIndex: 100,
|
zIndex: 100,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user