提交代码
This commit is contained in:
@@ -358,11 +358,11 @@ const onSubmit = () => {
|
||||
|
||||
formRef.value.validate(async (valid: boolean) => {
|
||||
let url = ''
|
||||
await html2canvas(document.querySelector('.GridLayout'), {
|
||||
useCORS: true
|
||||
}).then(canvas => {
|
||||
url = canvas.toDataURL('image/png')
|
||||
})
|
||||
// await html2canvas(document.querySelector('.GridLayout'), {
|
||||
// useCORS: true
|
||||
// }).then(canvas => {
|
||||
// url = canvas.toDataURL('image/png')
|
||||
// })
|
||||
form.pagePath = form.pagePath || ''
|
||||
|
||||
if (valid) {
|
||||
|
||||
Reference in New Issue
Block a user