onLoad(options) {
//console.log('所有参数:', options) // 查看是否真的没有 id
const id = options.id
console.log('③ 拿到帖子 id', id)
if (!id) {
// 修复:使用 uni.showToast 的标准参数格式(虽然这里仍为微信小程序语法)
wx.showToast({
title: '参数错误',
icon: 'none',
duration: 1500
})
return
