wx/pages/message/message.js @@ -24,11 +24,6 @@ // 检查用户是否已登录 const userInfo = app.globalData.userInfo if (!userInfo || !userInfo.userId) { console.error('用户未登录或userId不存在') wx.showToast({ title: '请先登录', icon: 'error' }) return }