From 03142cf8f389f2e2aa83899f62882e7f54c71fe7 Mon Sep 17 00:00:00 2001 From: wintsa Date: Fri, 12 Apr 2024 11:31:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E4=BF=AE=E6=94=B9=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=9B=BE=E6=A0=87=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/deskModule/SearchBox/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/deskModule/SearchBox/index.vue b/src/components/deskModule/SearchBox/index.vue index 35e1182..549a85a 100644 --- a/src/components/deskModule/SearchBox/index.vue +++ b/src/components/deskModule/SearchBox/index.vue @@ -51,7 +51,7 @@ const defaultSearchEngineList = ref([ ]) const defaultState: State = { - currentSearchEngine: defaultSearchEngineList.value[0], + currentSearchEngine: defaultSearchEngineList.value[1], searchEngineList: [] || defaultSearchEngineList, newWindowOpen: false, } @@ -68,7 +68,7 @@ const onBlur = (): void => { function handleEngineClick() { // 访客模式不允许修改 - if (authStore.visitMode === VisitMode.VISIT_MODE_PUBLIC) + if (authStore.visitMode === VisitMode.VISIT_MODE_PUBLIC &&authStore.userInfo?.role!=1) return searchSelectListShow.value = !searchSelectListShow.value }