zs 2 年之前
父節點
當前提交
0ba9f49823
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/match/index.js

+ 2 - 2
pages/match/index.js

@@ -79,14 +79,14 @@ Page({
         arr = await app.$get(`/dict`, { code: "match_status" });
         arr = await app.$get(`/dict`, { code: "match_status" });
         if (arr.errcode == '0' && arr.total > 0) {
         if (arr.errcode == '0' && arr.total > 0) {
             let list = arr.data[0].list;
             let list = arr.data[0].list;
-            list.push({ id: "1", label: '全部', value: '' });
+            list.push({ label: '全部', value: '' });
             that.setData({ statusList: list });
             that.setData({ statusList: list });
         }
         }
         // 赛事类别
         // 赛事类别
         arr = await app.$get(`/dict`, { code: "match_type" });
         arr = await app.$get(`/dict`, { code: "match_type" });
         if (arr.errcode == '0' && arr.total > 0) {
         if (arr.errcode == '0' && arr.total > 0) {
             let list = arr.data[0].list;
             let list = arr.data[0].list;
-            list.push({ id: "1", label: '全部', value: '' });
+            list.push({ label: '全部', value: '' });
             that.setData({ typeList: list });
             that.setData({ typeList: list });
         }
         }
     },
     },