Ver código fonte

feat: 修改

ljc 2 semanas atrás
pai
commit
a89eda8895
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      components/cwg-pc-header.vue

+ 4 - 2
components/cwg-pc-header.vue

@@ -18,7 +18,7 @@
 			</view>
 
 			<!-- 中间 Logo -->
-			<view class="center-logo">
+			<view class="center-logo" v-if="!isMobile">
 				<image
 					v-if="!isDark"
 					class="logo-img"
@@ -49,7 +49,9 @@
 <script setup lang="ts">
 import { computed } from 'vue'
 import useGlobalStore from '@/stores/use-global-store'
-
+import { useWindowWidth } from '@/composables/useWindowWidth'
+const windowWidth = useWindowWidth(300)
+const isMobile = computed(() => windowWidth.value <= 768)
 const globalStore = useGlobalStore()
 
 const isDark = computed(() => globalStore.theme === 'dark')