Sfoglia il codice sorgente

修改动画跳转

plg 8 mesi fa
parent
commit
8bdd263ec3
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 },