浏览代码

修改动画跳转

plg 8 月之前
父节点
当前提交
8bdd263ec3
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 },