fix wrong url param name

close #659
This commit is contained in:
myl7 2022-05-30 17:33:20 +08:00
parent 07f0314d43
commit f18005d05f

View file

@ -56,7 +56,7 @@ const EPUBPreview: FC<{ file: OdFileObject }> = ({ file }) => {
}}
>
<ReactReader
url={`/api/raw/?path=${asPath}${hashedToken ? '&token=' + hashedToken : ''}`}
url={`/api/raw/?path=${asPath}${hashedToken ? '&odpt=' + hashedToken : ''}`}
getRendition={rendition => fixEpub(rendition)}
loadingView={<Loading loadingText={t('Loading EPUB ...')} />}
location={location}