|
@@ -27,7 +27,7 @@ Page({
|
|
|
const that = this;
|
|
|
const { route, item } = e.currentTarget.dataset;
|
|
|
that.setData({ skip: 0, page: 0, list: [] })
|
|
|
- if (item && item.id) wx.navigateTo({ url: `/pages/${route}?id=${item.id}` })
|
|
|
+ if (item && item._id) wx.navigateTo({ url: `/pages/${route}?id=${item._id}` })
|
|
|
else wx.navigateTo({ url: `/pages/${route}` })
|
|
|
},
|
|
|
// 删除
|
|
@@ -118,6 +118,7 @@ Page({
|
|
|
const that = this;
|
|
|
// 查询其他信息
|
|
|
await that.searchOther();
|
|
|
+ // 监听用户是否登录
|
|
|
await that.watchLogin();
|
|
|
},
|
|
|
searchOther: async function () {
|