From 3065618610b1e4ea346331cfd27583c7a7571081 Mon Sep 17 00:00:00 2001 From: xiebing Date: Thu, 25 Dec 2025 15:57:47 +0800 Subject: [PATCH] =?UTF-8?q?perf=20:=20=E4=BB=8E=E9=A6=96=E9=A1=B5=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E8=BF=9B=E5=85=A5=E6=90=9C=E7=B4=A2=E9=A1=B5,?= =?UTF-8?q?=E4=B8=8D=E8=87=AA=E5=8A=A8=E8=81=9A=E7=84=A6=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/search/search.vue | 6 +++++- stores/useUserStore.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/search/search.vue b/pages/search/search.vue index 0e5f2c1..2bb65f0 100644 --- a/pages/search/search.vue +++ b/pages/search/search.vue @@ -30,7 +30,7 @@ { if (options.keyWord) { searchValue.value = decodeURIComponent(options.keyWord); searchBtn(); + }else{ + //从标签点进来不自动聚焦 + autoFocus.value = true } let arr = uni.getStorageSync('searchList'); if (arr) { diff --git a/stores/useUserStore.js b/stores/useUserStore.js index 6db329b..eb46370 100644 --- a/stores/useUserStore.js +++ b/stores/useUserStore.js @@ -138,7 +138,7 @@ const useUserStore = defineStore("user", () => { userInfo.value = values.data; // role.value = values.role; hasLogin.value = true; - isAuth.value = values.data?.isCert == 1 ? true : false + isAuth.value = values.data?.isCert == 1 ? true : false //是否认证 } const checkAuth = () => {