From a5be937eb36cb98a08526be903cf68db409efb8e Mon Sep 17 00:00:00 2001 From: zhangxuelin <959231531@qq.com> Date: Fri, 10 Jan 2025 14:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/Editor/CanvasTool/MaterialDialog.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/AixPPTist/src/views/Editor/CanvasTool/MaterialDialog.vue b/src/renderer/src/AixPPTist/src/views/Editor/CanvasTool/MaterialDialog.vue index 7402fe8..29ab75a 100644 --- a/src/renderer/src/AixPPTist/src/views/Editor/CanvasTool/MaterialDialog.vue +++ b/src/renderer/src/AixPPTist/src/views/Editor/CanvasTool/MaterialDialog.vue @@ -48,6 +48,7 @@ const init = () => { if(res.rows && res.rows.length){ // 过滤出图片和视频 list.value = res.rows.filter( item => suffixAry.indexOf(getFileSuffix(item.fileShowName)) != -1) + console.log(list.value) } }) } @@ -64,12 +65,13 @@ const fileUrl = computed(() => (item) =>{ // 插入 const onInsert = async (item) =>{ loading.value = true - const res = await fetch(item.fileFullPath) - const bolb = await res.blob() - const file = commUtils.blobToFile(bolb, item.fileShowName) - + console.log('item', item) + // const res = await fetch(item.fileFullPath) + // const bolb = await res.blob() + // const file = commUtils.blobToFile(bolb, item.fileShowName) + const data=item.fileFullPath try { - const data = await PPTApi.toRousrceUrl(file) + // const data = await PPTApi.toRousrceUrl(file) if(videoSuffix.indexOf(getFileSuffix(item.fileShowName)) != -1){ emit('insertMaterial',{ type: 'video', data }) }