|
@@ -25,7 +25,6 @@ Page({
|
|
|
const that = this;
|
|
|
const { item, route } = e.currentTarget.dataset;
|
|
|
that.setData({ skip: 0, page: 0, list: [] });
|
|
|
- that.setData({ match: {} });
|
|
|
wx.navigateTo({ url: `/pagesMatch/${route}?id=${item && item._id ? item._id : ''}` })
|
|
|
},
|
|
|
// 删除
|
|
@@ -109,6 +108,7 @@ Page({
|
|
|
let arr;
|
|
|
arr = await app.$get(`/match`, { belong_id: res.data.id }, 'race');
|
|
|
if (arr.errcode == '0') that.setData({ matchList: arr.data })
|
|
|
+ if(that.data.match&&that.data.match.id)that.search();
|
|
|
},
|
|
|
fail: async res => {
|
|
|
wx.redirectTo({ url: '/pages/index/index' })
|