From 8f32da7b244fa58c69dbde802cb5c0bef44260a4 Mon Sep 17 00:00:00 2001 From: tangzh Date: Fri, 21 Mar 2025 18:06:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tinymce/index.vue | 21 ++-- .../uploadPicture/forGenrator/index.vue | 3 +- src/components/uploadPicture/index.vue | 96 +++++++++++++------ .../uploadPicture/uploadFrom/index.vue | 2 +- src/views/store/creatStore/index.vue | 8 +- src/views/store/taoBao.vue | 2 +- .../takeGoods/deliveryAddress/addPoint.vue | 2 +- 7 files changed, 88 insertions(+), 46 deletions(-) diff --git a/src/components/Tinymce/index.vue b/src/components/Tinymce/index.vue index d4e7a0d..dd5ec28 100644 --- a/src/components/Tinymce/index.vue +++ b/src/components/Tinymce/index.vue @@ -144,16 +144,13 @@ export default { imageSuccessCBK(arr) { const _this = this; arr.forEach((v) => { - if (this.getFileType(v) == "video") { - window.tinymce - .get(_this.tinymceId) - .insertContent( - `` - ); + let fileType = this.getFileType(v); + if (fileType == "video") { + window.tinymce.get(_this.tinymceId).insertContent(``); + } else if (fileType == 'pdf') { + window.tinymce.get(_this.tinymceId).insertContent(`