瀏覽代碼

feat: 移动端多宝阁

chenlei 1 年之前
父節點
當前提交
f55f53da5f
共有 1 個文件被更改,包括 3 次插入5 次删除
  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