From 48f2f0b2084d77213164eb8a3f9c7bb3d199b7f8 Mon Sep 17 00:00:00 2001 From: jingrow Date: Wed, 21 Jan 2026 23:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Pexels=20=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=9B=BE=E7=9A=84=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tools/add_background/add_background.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/tools/add_background/add_background.vue b/src/views/tools/add_background/add_background.vue index 55a19d0..79424ca 100644 --- a/src/views/tools/add_background/add_background.vue +++ b/src/views/tools/add_background/add_background.vue @@ -791,10 +791,15 @@ const fetchPexelsImages = async () => { query: pexelsQuery.value, page: pexelsPage.value, per_page: PEXELS_PER_PAGE, - orientation: 'landscape' + orientation: 'landscape', + locale: 'zh-CN' // Add locale for better Chinese search results }, headers: { Authorization: PEXELS_API_KEY + }, + // Ensure proper encoding of parameters + paramsSerializer: { + encode: (param) => encodeURIComponent(param) } }) const newPhotos = response.data.photos || []