浏览代码

赛事分组默认显示

xjc 3 年之前
父节点
当前提交
f9f5a1be7e
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/match/group.vue

+ 5 - 1
src/views/match/group.vue

@@ -170,7 +170,11 @@ export default {
     },
     },
     created(){
-       this.getData() 
+        this.$api.getMatchList().then(res=>{
+            this.matchList=res.data.data
+            this.queryParams.match_id = this.matchList[0].id;
+            this.getData() 
+        })
     }
 }
 </script>