From b65f38f02e9bcc0b81b2a3c13ecdb089332bf665 Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Tue, 20 May 2025 15:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=84=E4=BB=B6=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=EF=BC=8C=E7=A7=BB=E9=99=A4SearchByCondition=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=94=AF=E6=8C=81=EF=BC=9B=E8=B0=83=E6=95=B4FileMessa?= =?UTF-8?q?ge.vue=E4=B8=AD=E7=9A=84=E6=96=87=E4=BB=B6=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96SysGroupAdminMessage.vue=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=9B=E4=BF=AE=E5=A4=8Dauth.js=E4=B8=AD=E7=9A=84to?= =?UTF-8?q?ken=E8=8E=B7=E5=8F=96=E9=80=BB=E8=BE=91=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 - src/components/editor/Editor.vue | 1 - src/components/talk/message/FileMessage.vue | 13 ++++++++++++- .../talk/message/system/SysGroupAdminMessage.vue | 3 +-- src/utils/auth.js | 2 +- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/components.d.ts b/components.d.ts index e34b33b..3e9678b 100644 --- a/components.d.ts +++ b/components.d.ts @@ -67,7 +67,6 @@ declare module 'vue' { RevokeMessage: typeof import('./src/components/talk/message/RevokeMessage.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] - SearchByCondition: typeof import('./src/components/search/searchByCondition.vue')['default'] SearchItem: typeof import('./src/components/search/searchItem.vue')['default'] SearchList: typeof import('./src/components/search/searchList.vue')['default'] SysGroupAdminMessage: typeof import('./src/components/talk/message/system/SysGroupAdminMessage.vue')['default'] diff --git a/src/components/editor/Editor.vue b/src/components/editor/Editor.vue index 072badb..6750bae 100644 --- a/src/components/editor/Editor.vue +++ b/src/components/editor/Editor.vue @@ -577,7 +577,6 @@ function hideMentionDom() { * @param data 消息数据 */ function onSubscribeEdit(data: any) { - console.log('data', data) const quill = getQuill() if (!quill) return diff --git a/src/components/talk/message/FileMessage.vue b/src/components/talk/message/FileMessage.vue index ae2c62f..bb6ed7c 100644 --- a/src/components/talk/message/FileMessage.vue +++ b/src/components/talk/message/FileMessage.vue @@ -83,10 +83,21 @@ const circumference = computed(() => 2 * Math.PI * radius) const strokeDashoffset = computed(() => circumference.value * (1 - (props.extra.percentage || 0) / 100) ) + +// 处理文件点击事件 +const handleClick = () => { + console.log('props.extra', props.extra); + + window.open( + `http://localhost:5500/?url=${props.extra.path}`, + '_blank', + 'width=800,height=600,left=200,top=200,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no' + ); +}