Jelajahi Sumber

修改动画跳转

plg 8 bulan lalu
induk
melakukan
8bdd263ec3
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/renderer/components/Animation.vue

+ 2 - 2
src/renderer/components/Animation.vue

@@ -163,12 +163,12 @@ export default {
     },
     goPage(val, typeName) {
       //当singlePeople 为false时跳进双人选择的界面
-      if (this.singlePeople) {
+      if (this.singlePeople=='0') {
         this.$router.push({
           path: val,
           query: { gameType: typeName, single: this.singlePeople },
         });
-      } else {
+      } else if(this.singlePeople=='1') {
         this.$router.push({
           path: "/menu/animationDouble",
           query: { gameType: typeName, single: this.singlePeople },