"param $slug referenced, but not provided"
"param $slug referenced, but not provided"
当我尝试在 sanity vision 中获取数据时,出现此错误:
param $slug referenced, but not provided
*[_type == "post" && slug.current == $slug][0]{
-------------------------------------^^^^
Line: 0
Column: 37
this is the SS of the sanity vision
在 bottom-left 的 PARAMS 面板中,您需要指定一个 slug
参数。
{
“slug”: “some-slug”
}
当我尝试在 sanity vision 中获取数据时,出现此错误:
param $slug referenced, but not provided
*[_type == "post" && slug.current == $slug][0]{
-------------------------------------^^^^
Line: 0
Column: 37
this is the SS of the sanity vision
在 bottom-left 的 PARAMS 面板中,您需要指定一个 slug
参数。
{
“slug”: “some-slug”
}