fix:magz detail
This commit is contained in:
parent
049f0cf8fc
commit
c37ab71a23
|
|
@ -33,7 +33,7 @@ export default function EMagazineDetail() {
|
||||||
const doDownload = async (fileName: string, title: string): Promise<void> => {
|
const doDownload = async (fileName: string, title: string): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`http://38.47.180.165:8802/magazine-files/viewer/${fileName}`
|
`https://38.47.180.165:8802/magazine-files/viewer/${fileName}`
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|
@ -74,10 +74,19 @@ export default function EMagazineDetail() {
|
||||||
{detailData?.title}
|
{detailData?.title}
|
||||||
</div>
|
</div>
|
||||||
<div className="rounded-lg h-[380px] flex items-center justify-center">
|
<div className="rounded-lg h-[380px] flex items-center justify-center">
|
||||||
<img
|
{/* <img
|
||||||
src="/emagazine.jpeg"
|
src="/emagazine.jpeg"
|
||||||
alt="emagazine"
|
alt="emagazine"
|
||||||
className="h-[380px] rounded-md py-1"
|
className="h-[380px] rounded-md py-1"
|
||||||
|
/> */}
|
||||||
|
<img
|
||||||
|
src={`https://kontenhumas.com/magazines/thumbnail/viewer/${
|
||||||
|
detailData?.thumbnailPath.split("/")[
|
||||||
|
detailData?.thumbnailPath.split("/").length - 1
|
||||||
|
]
|
||||||
|
}`}
|
||||||
|
alt="emagazine"
|
||||||
|
className="h-[380px] rounded-md py-1"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue