|
|
@@ -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')
|