Reportviewer hatası düzenlemesi
This commit is contained in:
parent
1571be8d2c
commit
c83611c178
2 changed files with 14 additions and 6 deletions
|
|
@ -12,8 +12,12 @@ import { useParams } from 'react-router-dom'
|
|||
|
||||
const DevexpressReportDesigner: React.FC = () => {
|
||||
const { translate } = useLocalization()
|
||||
const params = useParams()
|
||||
const { id } = useParams<{ id: string }>()
|
||||
|
||||
if (!id) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Helmet
|
||||
|
|
@ -22,9 +26,9 @@ const DevexpressReportDesigner: React.FC = () => {
|
|||
defaultTitle="Erp Platform"
|
||||
></Helmet>
|
||||
|
||||
<ReportDesigner reportUrl={params?.id ?? ''}>
|
||||
<ReportDesigner reportUrl={id}>
|
||||
<RequestOptions
|
||||
host={import.meta.env.VITE_API_URL + '/'}
|
||||
host={`${import.meta.env.VITE_API_URL}/`}
|
||||
getDesignerModelAction="DXXRD/GetDesignerModel"
|
||||
/>
|
||||
</ReportDesigner>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,11 @@ import { useParams } from 'react-router-dom'
|
|||
|
||||
const DevexpressReportViewer: React.FC = () => {
|
||||
const { translate } = useLocalization()
|
||||
const params = useParams()
|
||||
const { id } = useParams<{ id: string }>()
|
||||
|
||||
if (!id) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<Container>
|
||||
|
|
@ -21,8 +25,8 @@ const DevexpressReportViewer: React.FC = () => {
|
|||
defaultTitle="Erp Platform"
|
||||
></Helmet>
|
||||
|
||||
<ReportViewer reportUrl={params?.id ?? ''}>
|
||||
<RequestOptions host={import.meta.env.VITE_API_URL + '/'} invokeAction="DXXRDV" />
|
||||
<ReportViewer reportUrl={id}>
|
||||
<RequestOptions host={`${import.meta.env.VITE_API_URL}/`} invokeAction="DXXRDV" />
|
||||
</ReportViewer>
|
||||
</Container>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue