From 9c3114828f8e770f9ebf5b6bb728d9823b78eebe Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Mon, 12 Sep 2022 13:42:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=85=E5=AF=B9=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E5=A4=A7=E4=BA=8E=E7=AD=89=E4=BA=8E2=E7=9A=84=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=8F=90=E4=BE=9B=E5=88=86=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/plugin.json | 2 +- src/cpns/ClipItemList.vue | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/public/plugin.json b/public/plugin.json index 54820a8..5595e9b 100644 --- a/public/plugin.json +++ b/public/plugin.json @@ -1,5 +1,5 @@ { - "version": "1.3.0", + "version": "1.3.1", "pluginName": "超级剪贴板", "description": "强大的剪贴板管理工具", "author": "ZiuChen", diff --git a/src/cpns/ClipItemList.vue b/src/cpns/ClipItemList.vue index f475908..926c4f4 100644 --- a/src/cpns/ClipItemList.vue +++ b/src/cpns/ClipItemList.vue @@ -46,7 +46,10 @@ (id === 'view' && item.type !== 'image') || (id === 'open-folder' && item.type === 'file') || (id === 'un-collect' && item.collect === true) || - (id === 'word-break' && item.type === 'text' && item.data.length <= 500) + (id === 'word-break' && + item.type === 'text' && + item.data.length <= 500 && + item.data.length >= 2) " :class="id" :title="title" @@ -182,8 +185,8 @@ const operation = [ { id: 'view', title: '查看全部', icon: '💬' }, { id: 'open-folder', title: '打开文件夹', icon: '📁' }, { id: 'collect', title: '收藏', icon: '⭐' }, - { id: 'word-break', title: '分词', icon: '💣' }, { id: 'un-collect', title: '取消收藏', icon: '📤' }, + { id: 'word-break', title: '分词', icon: '💣' }, { id: 'remove', title: '删除', icon: '❌' } ] const handleOperateClick = ({ id, item }) => { @@ -204,7 +207,11 @@ const handleOperateClick = ({ id, item }) => { window.db.updateDataBaseLocal(db) break case 'word-break': - utools.redirect('超级分词', item.data) + const success = utools.redirect('超级分词', item.data) + if (success) { + } else { + utools.shellOpenExternal('https://ziuchen.github.io/project/SmartWordBreak/') + } break case 'un-collect': item.collect = undefined