From b512eac708afc3788172b6dc02243c8376c4bcc0 Mon Sep 17 00:00:00 2001 From: Jason <5340635+wen-jason@user.noreply.gitee.com> Date: Tue, 20 Sep 2022 11:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=B7=A5=E5=85=B7=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/pages/search/component/suggest.vue | 8 ++++---- app/src/utils/file.ts | 7 ++----- app/src/utils/util.ts | 1 - 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app/src/pages/search/component/suggest.vue b/app/src/pages/search/component/suggest.vue index cb808eb7..504ef4ca 100644 --- a/app/src/pages/search/component/suggest.vue +++ b/app/src/pages/search/component/suggest.vue @@ -2,10 +2,10 @@ - 热门搜索 + 热门搜索 - + {{ hotItem }} @@ -19,12 +19,12 @@ - 历史搜索 + 历史搜索 清空 - + {{ hisItem }} diff --git a/app/src/utils/file.ts b/app/src/utils/file.ts index ea120128..d1cac28e 100644 --- a/app/src/utils/file.ts +++ b/app/src/utils/file.ts @@ -1,5 +1,5 @@ export async function saveImageToPhotosAlbum(url: string) { - if (!url) return uni.$u.$toast('图片不存在') + if (!url) return uni.$u.toast('图片不存在') //#ifdef H5 uni.$u.$toast('长按图片保存') //#endif @@ -13,9 +13,6 @@ export async function saveImageToPhotosAlbum(url: string) { icon: 'success' }) } catch (error: any) { - uni.showToast({ - title: error.errMsg || '保存失败', - icon: 'none' - }) + uni.$u.toast(error.errMsg || '保存失败') } } diff --git a/app/src/utils/util.ts b/app/src/utils/util.ts index aa371989..a6ea8f76 100644 --- a/app/src/utils/util.ts +++ b/app/src/utils/util.ts @@ -88,7 +88,6 @@ export function objectToQuery(params: Record): string { } } } else { - console.log(part + encodeURIComponent(value), '####') query += part + encodeURIComponent(value) + '&' } }