Explorar o código

修改动画跳转

plg hai 8 meses
pai
achega
8bdd263ec3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 },