diff --git a/src/components/modules/content.vue b/src/components/modules/content.vue index cf528e7..09695bd 100644 --- a/src/components/modules/content.vue +++ b/src/components/modules/content.vue @@ -10,7 +10,7 @@ + :label-width="data.labelWidth"> = 0) { - byteString = atob(base64Data.split(',')[1]) - } else { - byteString = unescape(base64Data.split(',')[1]) - } - const mimeString = base64Data - .split(',')[0] - .split(':')[1] - .split(';')[0] - const ia = new Uint8Array(byteString.length) - for (let i = 0; i < byteString.length; i++) { - ia[i] = byteString.charCodeAt(i) - } - return new Blob([ia], { - type: mimeString - }) - }, // 图片上传到服务器 imgUpload (formData) { this.isUpload = true diff --git a/src/components/modules/module.vue b/src/components/modules/module.vue index b966c05..ab26061 100644 --- a/src/components/modules/module.vue +++ b/src/components/modules/module.vue @@ -1,47 +1,16 @@