верификация вывод pdf
This commit is contained in:
parent
51752ba5e6
commit
19a518d651
@ -17,7 +17,8 @@ export const verification = async (
|
|||||||
try {
|
try {
|
||||||
const verificationResponse = await makeRequest<never, Verification>({
|
const verificationResponse = await makeRequest<never, Verification>({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: `${API_URL}/${userId}`,
|
url: API_URL,
|
||||||
|
// url: `${API_URL}/${userId}`,
|
||||||
useToken: true,
|
useToken: true,
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
});
|
});
|
||||||
|
@ -57,10 +57,7 @@ import AfterPay from "./pages/AfterPay";
|
|||||||
import { PageNotFound } from "./pages/PageNotFound";
|
import { PageNotFound } from "./pages/PageNotFound";
|
||||||
import {setNotEnoughMoneyAmount} from "@stores/cart"
|
import {setNotEnoughMoneyAmount} from "@stores/cart"
|
||||||
|
|
||||||
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
|
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
|
||||||
"pdfjs-dist/build/pdf.worker.min.js",
|
|
||||||
import.meta.url
|
|
||||||
).toString();
|
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
@ -21,10 +21,7 @@ interface Props {
|
|||||||
accept?: string;
|
accept?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
|
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`;
|
||||||
"pdfjs-dist/build/pdf.worker.min.js",
|
|
||||||
import.meta.url
|
|
||||||
).toString()
|
|
||||||
|
|
||||||
export default function DocumentUploadItem({
|
export default function DocumentUploadItem({
|
||||||
text,
|
text,
|
||||||
@ -96,7 +93,8 @@ export default function DocumentUploadItem({
|
|||||||
multiple
|
multiple
|
||||||
accept={accept}
|
accept={accept}
|
||||||
/>
|
/>
|
||||||
<Document file={document.file || (documentUrl && { url: documentUrl })}>
|
{(document.file || documentUrl) &&
|
||||||
|
<Document file={document.file || documentUrl}>
|
||||||
<Page
|
<Page
|
||||||
pageNumber={1}
|
pageNumber={1}
|
||||||
width={200}
|
width={200}
|
||||||
@ -104,7 +102,7 @@ export default function DocumentUploadItem({
|
|||||||
renderAnnotationLayer={false}
|
renderAnnotationLayer={false}
|
||||||
onClick={downloadFile}
|
onClick={downloadFile}
|
||||||
/>
|
/>
|
||||||
</Document>
|
</Document>}
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user