任一存 1 年之前
父節點
當前提交
2284f04fb7
共有 3 個文件被更改,包括 9 次插入2 次删除
  1. 2 2
      public/index.html
  2. 3 0
      src/views/BambooBookScene2.vue
  3. 4 0
      src/views/GameView.vue

+ 2 - 2
public/index.html

@@ -21,7 +21,7 @@
   <body>
     <script src="./configText.js"></script>
     <script src="./configExcel.js"></script>
-    <script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>
+    <!-- <script src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script> -->
     <noscript>
       <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
     </noscript>
@@ -29,7 +29,7 @@
     <!-- built files will be auto injected -->
 
     <script>
-      new VConsole()
+      // new VConsole()
     </script>
   </body>
 </html>

+ 3 - 0
src/views/BambooBookScene2.vue

@@ -93,6 +93,7 @@ const {
           :style="{ width: x > 0.5 ? '100%' : '' }"
           :src=" ganImg"
           alt=""
+          @click="emit('next', curPart)"
         >
       </Transition>
       <Transition name="fade-in-out">
@@ -102,6 +103,7 @@ const {
           :style="{ width: x > 0.5 ? '100%' : '' }"
           :src=" zhiImg"
           alt=""
+          @click="emit('next', curPart)"
         >
       </Transition>
       <Transition name="fade-in-out">
@@ -111,6 +113,7 @@ const {
           :style="{ width: x > 0.5 ? '100%' : '' }"
           :src=" yeImg"
           alt=""
+          @click="emit('next', curPart)"
         >
       </Transition>
       <!-- 竹子部分选择 -->

+ 4 - 0
src/views/GameView.vue

@@ -2,10 +2,13 @@
 import { ref, onMounted } from 'vue'
 import { useRouter } from "vue-router"
 import useSizeAdapt from "@/useFunctions/useSizeAdapt"
+import { useStore } from 'vuex'
 
 import Toast from '@/components/ToastBox.vue'
 const router = useRouter()
 
+const store = useStore()
+
 // home-封面  unity-游戏 scene-线上展  reset-确认是否重新
 const mode = ref('home')
 
@@ -19,6 +22,7 @@ const goHome = () => {
 }
 
 const resetHome = () => {
+  store.commit('setShowingStartup', false)
   router.replace('/')
 }