|
@@ -415,11 +415,12 @@ const openCertImg = async(certName) => {
|
|
useCORS: true,
|
|
useCORS: true,
|
|
})
|
|
})
|
|
canvas.toBlob(
|
|
canvas.toBlob(
|
|
- (blob) => {
|
|
|
|
|
|
+ async (blob) => {
|
|
if (blob) {
|
|
if (blob) {
|
|
- certImgUrl.value = URL.createObjectURL(blob)
|
|
|
|
|
|
+ const uploadRes = await uploadFile(blob)
|
|
|
|
+ // certImgUrl.value = URL.createObjectURL(blob)
|
|
|
|
+ certImgUrl.value = `${process.env.VUE_APP_DEPLOY_ORIGIN}${uploadRes}`
|
|
isShowCertImg.value = true
|
|
isShowCertImg.value = true
|
|
- uploadFile(blob)
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
'image/jpeg',
|
|
'image/jpeg',
|
|
@@ -819,6 +820,7 @@ const getRedeem = async() => {
|
|
object-fit: contain;
|
|
object-fit: contain;
|
|
}
|
|
}
|
|
>a.btn-download{
|
|
>a.btn-download{
|
|
|
|
+ display: none;
|
|
position: absolute;
|
|
position: absolute;
|
|
left: 50%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
transform: translateX(-50%);
|