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 || []