From 51e051923d715d8a71fed4fe04e4eb54c019d036 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 4 Jun 2025 11:34:16 +0800 Subject: [PATCH 1/4] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E8=BE=91=E5=B7=A6=E4=BE=A7=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FancyTree/index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/FancyTree/index.vue b/src/components/FancyTree/index.vue index b0fb8e2..90db727 100644 --- a/src/components/FancyTree/index.vue +++ b/src/components/FancyTree/index.vue @@ -454,8 +454,7 @@ }, loadSvg(svgName){ if(svgName){ - let src = require(`@/icons/svg/${svgName}.svg`) - return `${src.default.render()}` + return `` } }, lazyLoad(event, data){ From a2307bd3c2d281de41df3d27f90123a95fb5f7a5 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 4 Jun 2025 11:37:10 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E6=90=9C=E7=B4=A2=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E6=96=B0=E5=A2=9E=E7=B2=BE=E5=87=86=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/file-api.js | 8 + src/components/SearchOption/index.vue | 124 +++++++++-- src/components/ShowFile/ShowFile.vue | 284 ++++++++++++++++++++----- src/components/preview/FileDetails.vue | 10 +- src/store/getters.js | 3 +- src/store/modules/user.js | 7 +- src/styles/index.scss | 3 + 7 files changed, 365 insertions(+), 74 deletions(-) diff --git a/src/api/file-api.js b/src/api/file-api.js index 3e8a270..0d3eb49 100644 --- a/src/api/file-api.js +++ b/src/api/file-api.js @@ -153,6 +153,14 @@ export default { params }) }, + // 删除所有搜索记录🔍 + removeAllSearchHistory: function(params) { + return request({ + url: '/search/deleteAllSearchHistory', + method: 'delete', + params + }) + }, // 搜索文件🔍 searchFile: function(params) { return request({ diff --git a/src/components/SearchOption/index.vue b/src/components/SearchOption/index.vue index e7f54df..278577d 100644 --- a/src/components/SearchOption/index.vue +++ b/src/components/SearchOption/index.vue @@ -18,15 +18,57 @@ 个结果 + +
+
+ 查找范围: +
+
+
+ 标签名称 + +
+
+ 文件名称 + +
+
+ 文件内容 + +
+
+
+