From fd292bcb54492ac4ebdc9a6fddf9be5fd23fa7a6 Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 7 Mar 2023 22:49:42 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=20=E4=BC=98=E5=8C=96=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShareDialog/index.vue | 14 +++++--------- src/components/ShowFile/ShowFile.vue | 3 ++- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/ShareDialog/index.vue b/src/components/ShareDialog/index.vue index f9b218e..0bf87e8 100644 --- a/src/components/ShareDialog/index.vue +++ b/src/components/ShareDialog/index.vue @@ -62,8 +62,8 @@ @@ -165,14 +165,12 @@ export default { watch: { file(file) { if (file.fileId) { - console.log('file', file) } }, status(visible) { if(visible){ this.shareDialogVisible = true if (this.file.shareId) { - console.log('share', this.file) this.shareOptionConfig.shared = true this.shareOptionConfig.linkLabel = '分享链接' this.shareLink = this.getShareLink(this.file.shareId) @@ -194,7 +192,6 @@ export default { }, methods: { shareDialogClose() { - console.log('shareDialogClose') this.shareOptionConfig.shared = false this.$emit('update:status', this.shareDialogVisible) }, @@ -251,7 +248,6 @@ export default { isPrivacy: this.shareOption.isPrivacy }).then(res => { if (res.data) { - console.log(res.data) let {shareId, extractionCode} = res.data this.shareLink = this.getShareLink(shareId) this.generateShareLinkLoading = false @@ -278,13 +274,13 @@ export default { }) }, // 复制分享链接 - copyShareLink() { + copyShareLink(msg) { let clipboard = new Clipboard('.tag-share-link') clipboard.on('success', e => { this.$message({ - message: '复制成功', + message: msg, type: 'success', - duration: 1000 + duration: 3000 }); // 释放内存 clipboard.destroy() diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 8548b90..11b6349 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -825,7 +825,8 @@ export default { if (abb.length + 1 >= filename.length) { return filename } - return prev + "…" + next + // return prev + "…" + next + return filename } }, getSummaries2() {