Parcourir la source

feat: 移动端多宝阁

chenlei il y a 1 an
Parent
commit
f55f53da5f
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. 3 5
      src/components/GameEntryPage.vue

+ 3 - 5
src/components/GameEntryPage.vue

@@ -51,7 +51,7 @@
       <div
         class="entry-item"
         @click="store.dispatch('openIframePage', {
-          url: 'https://houseoss.4dkankan.com/project/yzdyh-dadu/duobaoge/index.html',
+          url: $isMobile ? 'https://houseoss.4dkankan.com/project/yzdyh-dadu/duobaoge/mobile/index.html' : 'https://houseoss.4dkankan.com/project/yzdyh-dadu/duobaoge/index.html',
           style: 'width: 100%; height: 100%'
         })"
       >
@@ -76,13 +76,11 @@
 </template>
 
 <script setup>
-import { ref, computed, watch, onMounted } from "vue"
-import { useRoute, useRouter } from "vue-router"
+import { inject } from "vue"
 import { useStore } from "vuex"
 
-const route = useRoute()
-const router = useRouter()
 const store = useStore()
+const $isMobile = inject('$isMobile')
 
 const gameName = store.state.gameEntryPageAttrs.gameName