From 93d6a1276a9363cc60391cc40410a63b8d96d29f Mon Sep 17 00:00:00 2001 From: jiangrui Date: Fri, 7 Mar 2025 14:11:52 +0800 Subject: [PATCH 01/10] update 123 RegExp --- backend/src/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts index 094c569..bc21cc7 100644 --- a/backend/src/config/index.ts +++ b/backend/src/config/index.ts @@ -69,7 +69,7 @@ export const config: Config = { aliyun: /https?:\/\/\w+\.(?:alipan|aliyundrive)\.com\/[^\s<>"]+/g, // pan115有两个域名 115.com 和 anxia.com 和 115cdn.com pan115: /https?:\/\/(?:115|anxia|115cdn)\.com\/s\/[^\s<>"]+/g, - pan123: /https?:\/\/www\.123pan\.com\/s\/[^\s<>"]+/g, + pan123: /https?:\/\/www\.(?:123pan|123912)\.com\/s\/[^\s<>"]+/g, quark: /https?:\/\/pan\.quark\.cn\/[^\s<>"]+/g, yidong: /https?:\/\/yun\.139\.com\/[^\s<>"]+/g, }, From a04f16bfa481aef3aa0e54c8e28073b0e77be06c Mon Sep 17 00:00:00 2001 From: jiangrui Date: Fri, 7 Mar 2025 16:52:14 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9123=E7=BD=91=E7=9B=98?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=AD=A3=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/config/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts index bc21cc7..789cf4b 100644 --- a/backend/src/config/index.ts +++ b/backend/src/config/index.ts @@ -69,7 +69,8 @@ export const config: Config = { aliyun: /https?:\/\/\w+\.(?:alipan|aliyundrive)\.com\/[^\s<>"]+/g, // pan115有两个域名 115.com 和 anxia.com 和 115cdn.com pan115: /https?:\/\/(?:115|anxia|115cdn)\.com\/s\/[^\s<>"]+/g, - pan123: /https?:\/\/www\.(?:123pan|123912)\.com\/s\/[^\s<>"]+/g, + // 修改为匹配所有以123开头的域名 + pan123: /https?:\/\/(?:www\.)?123[^\/\s<>"]+\.com\/s\/[^\s<>"]+/g, quark: /https?:\/\/pan\.quark\.cn\/[^\s<>"]+/g, yidong: /https?:\/\/yun\.139\.com\/[^\s<>"]+/g, }, From eedd68d137626f26923eebe5d5a2304dcd53ee32 Mon Sep 17 00:00:00 2001 From: jiangrui Date: Fri, 7 Mar 2025 23:21:24 +0800 Subject: [PATCH 03/10] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/SearchBar.vue | 8 ++++++- frontend/src/stores/resource.ts | 28 ++++++++++++++-------- frontend/src/types/index.ts | 1 + frontend/src/views/ResourceList.vue | 16 +++++++++++-- frontend/src/views/mobile/Home.vue | 8 ++++++- frontend/src/views/mobile/ResourceList.vue | 18 +++++++++++--- 6 files changed, 62 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/SearchBar.vue b/frontend/src/components/SearchBar.vue index 855fd1f..5d5545d 100644 --- a/frontend/src/components/SearchBar.vue +++ b/frontend/src/components/SearchBar.vue @@ -83,10 +83,16 @@ watch( keyword.value = newKeyword; handleSearch(); } else { - keyword.value = ""; + keyword.value = resourcStore.keyword; } } ); +watch( + () => resourcStore.keyword, + (newKeyword) => { + keyword.value = newKeyword; + } +);