diff --git a/src/views/Design/components/Questions/SignQuestion.vue b/src/views/Design/components/Questions/SignQuestion.vue index 4430ed6..86cdb55 100644 --- a/src/views/Design/components/Questions/SignQuestion.vue +++ b/src/views/Design/components/Questions/SignQuestion.vue @@ -188,32 +188,54 @@ const emitValue = () => { /** * 上传文件 */ -async function handleUploadImg () { +async function handleUploadImg() { const file = new File([saveCanvas('blob')!], 'sign.png', { type: 'image/png' }); - const { url } = await CommonApi.cosUpload(file); + const res = await CommonApi.cosUpload(file); + console.log(`sign upload url`, res); // 传递答案 - answer.value = url; + answer.value = res; }