diff --git a/app/page/ArtDetailPage.js b/app/page/ArtDetailPage.js index da59b30..0134ecf 100644 --- a/app/page/ArtDetailPage.js +++ b/app/page/ArtDetailPage.js @@ -18,9 +18,9 @@ const ArtDetail = (props) => { return
{isViewerDisplay && setDisplay(false)} urls={[picSrc]} index={0}/>} - setDisplay(true)} src={picSrc} /> - { - isLoading || <> + {!isLoading && data.success === true && <> + setDisplay(true)} src={picSrc} /> +
{data.artwork.title}
{data.artwork.description} @@ -57,6 +57,10 @@ const ArtDetail = (props) => { /> } + {!isLoading && data.success == false && <> +
请先登录
+
{data.errorinfo}
+ }
}