微信小程序, 如请求url所示, 我希望能够请求到goods接口里满足"categoryId和传来的id值相等"这一条件的所有记录, 但不知道请求url该怎么写, 现在这样只能匹配goods的id而不是categoryId.
request({ url: `/categories/${id}?_embed=goods` //需要改的行 }).then((res) => { console.log(res) })
收起
${id}?_embed=goods 这个是变量 ?还是需要传参数
报告相同问题?