Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js Gridsome在代码更改后丢失$page_Vue.js_Gridsome - Fatal编程技术网

Vue.js Gridsome在代码更改后丢失$page

Vue.js Gridsome在代码更改后丢失$page,vue.js,gridsome,Vue.js,Gridsome,我将gridsome与strapi一起使用。 在代码中进行任何更改后,当页面尝试重新呈现新更改时,会出现以下错误: [Vue warn]: Error in render: "TypeError: Cannot read property 'strapi' of null" 我使用的代码是: {{$page.strapi.recipes[0].Title} 查询: <page-query> query ($slug: String!) { strapi{

我将gridsome与strapi一起使用。 在代码中进行任何更改后,当页面尝试重新呈现新更改时,会出现以下错误:

[Vue warn]: Error in render: "TypeError: Cannot read property 'strapi' of null"
我使用的代码是:

{{$page.strapi.recipes[0].Title}

查询:

<page-query>
query ($slug: String!) {
  strapi{
    recipes(where: {Slug: $slug}){
      Slug
      Title
      categories{
        Name
        Slug
      }
    }
  }
}
</page-query>

查询($slug:String!){
斯特拉皮{
配方(其中:{Slug:$Slug}){
鼻涕虫
标题
类别{
名称
鼻涕虫
}
}
}
}
只有当我使用以下命令重新启动项目时,它才会再次加载数据:gridsome develope