在组件A中,我从REST服务获取数据,为了与组件B共享这些数据,我想使用SharedDataService。= data; return of (this.sharedData);在调试过程中,我发现组件B试图比放在那里的组件A更早地获取数据。共享数据运行良好。例如,如果我将this.sharedService.addSharedData(伪造数据)放在组件</e
在Vuepress博客站点中,我在我的博客贴子中插入了一个组件,该组件从数据库获取信息以填充其数据。import { InMemoryCache } from 'apollo-cache-inmemory';
import VueApollo from 'vue-apollo$apolloData是空的,查询永远不会执行。我认为这与